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=217)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.lodash}()},100:function(e,t){e.exports=function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(o=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}},101:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},102:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},103:function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},104:function(e,t){e.exports=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}}},105:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}},106:function(e,t){function n(t,o){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,o)}e.exports=n},108: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,i,c=t[o.type],a=n(o);if(c)for(r=0;r<c.length;r++)(i=c[r](o,e))&&e.dispatch(i);return a}}}}}()},128:function(e,t){!function(){e.exports=this.wp.coreData}()},13: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 i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o))e.push(r.apply(null,o));else if("object"===i)for(var c in o)n.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=r:void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},14:function(e,t){!function(){e.exports=this.wp.keycodes}()},196:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},2:function(e,t){!function(){e.exports=this.wp.i18n}()},20:function(e,t){function n(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)}}e.exports=function(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}},21:function(e,t,n){var o=n(106);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},217:function(e,t,n){"use strict";n.r(t);var o={};n.d(o,"openGeneralSidebar",function(){return ce}),n.d(o,"closeGeneralSidebar",function(){return ae}),n.d(o,"openModal",function(){return le}),n.d(o,"closeModal",function(){return se}),n.d(o,"openPublishSidebar",function(){return ue}),n.d(o,"closePublishSidebar",function(){return de}),n.d(o,"togglePublishSidebar",function(){return be}),n.d(o,"toggleGeneralSidebarEditorPanel",function(){return pe}),n.d(o,"toggleFeature",function(){return me}),n.d(o,"switchEditorMode",function(){return fe}),n.d(o,"togglePinnedPluginItem",function(){return Oe}),n.d(o,"initializeMetaBoxState",function(){return he}),n.d(o,"requestMetaBoxUpdates",function(){return je}),n.d(o,"metaBoxUpdatesSuccess",function(){return ge}),n.d(o,"setMetaBoxSavedData",function(){return ve});var r={};n.d(r,"getEditorMode",function(){return ye}),n.d(r,"isEditorSidebarOpened",function(){return Se}),n.d(r,"isPluginSidebarOpened",function(){return _e}),n.d(r,"getActiveGeneralSidebarName",function(){return Pe}),n.d(r,"getPreferences",function(){return ke}),n.d(r,"getPreference",function(){return we}),n.d(r,"isPublishSidebarOpened",function(){return xe}),n.d(r,"isEditorSidebarPanelOpened",function(){return Ce}),n.d(r,"isModalActive",function(){return Te}),n.d(r,"isFeatureActive",function(){return Ae}),n.d(r,"isPluginItemPinned",function(){return Me}),n.d(r,"getMetaBoxes",function(){return Be}),n.d(r,"getMetaBox",function(){return Ne}),n.d(r,"hasMetaBoxes",function(){return Ie}),n.d(r,"isSavingMetaBoxes",function(){return De});var i=n(0),c=(n(128),n(8)),a=n(61),l=n(50),s=n(196),u=n(4),d=(n(439),n(29)),b=n(28),p=n.n(b),m=n(24),f=n.n(m),O=n(20),h=n.n(O),j=n(23),g=n.n(j),v=n(22),E=n.n(v),y=n(21),S=n.n(y),P=n(5),k=n.n(P),w=n(1),x=n(9),C=n(2),T=function(){return wp.media.view.MediaFrame.Post.extend({createStates:function(){this.states.add([new wp.media.controller.Library({id:"gallery",title:wp.media.view.l10n.createGalleryTitle,priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!1,library:wp.media.query(_.defaults({type:"image"},this.options.library))}),new wp.media.controller.GalleryEdit({library:this.options.selection,editing:this.options.editing,menu:"gallery",displaySettings:!1,multiple:!0}),new wp.media.controller.GalleryAdd])}})},A=function(e){return Object(w.pick)(e,["sizes","mime","type","subtype","id","url","alt","link","caption"])},M=function(e){return wp.media.query({order:"ASC",orderby:"post__in",per_page:-1,post__in:e,query:!0,type:"image"})},B=function(e){function t(e){var n,o=e.multiple,r=void 0!==o&&o,i=e.type,c=e.gallery,a=void 0!==c&&c,l=e.title,s=void 0===l?Object(C.__)("Select or Upload Media"):l,u=e.modalClass,d=e.value;if(f()(this,t),(n=g()(this,E()(t).apply(this,arguments))).openModal=n.openModal.bind(k()(k()(n))),n.onOpen=n.onOpen.bind(k()(k()(n))),n.onSelect=n.onSelect.bind(k()(k()(n))),n.onUpdate=n.onUpdate.bind(k()(k()(n))),n.onClose=n.onClose.bind(k()(k()(n))),n.processMediaCaption=n.processMediaCaption.bind(k()(k()(n))),a){var b=d?"gallery-edit":"gallery",p=T(),m=M(d),O=new wp.media.model.Selection(m.models,{props:m.props.toJSON(),multiple:r});n.frame=new p({mimeType:i,state:b,multiple:r,selection:O,editing:!!d}),wp.media.frame=n.frame}else{var h={title:s,button:{text:Object(C.__)("Select")},multiple:r};i&&(h.library={type:i}),n.frame=wp.media(h)}return u&&n.frame.$el.addClass(u),n.frame.on("select",n.onSelect),n.frame.on("update",n.onUpdate),n.frame.on("open",n.onOpen),n.frame.on("close",n.onClose),n}return S()(t,e),h()(t,[{key:"componentWillUnmount",value:function(){this.frame.remove()}},{key:"onUpdate",value:function(e){var t=this,n=this.props,o=n.onSelect,r=n.multiple,i=void 0!==r&&r,c=this.frame.state(),a=e||c.get("selection");a&&a.models.length&&o(i?a.models.map(function(e){return t.processMediaCaption(A(e.toJSON()))}):this.processMediaCaption(A(a.models[0].toJSON())))}},{key:"onSelect",value:function(){var e=this.props,t=e.onSelect,n=e.multiple,o=void 0!==n&&n,r=this.frame.state().get("selection").toJSON();t(o?r.map(this.processMediaCaption):this.processMediaCaption(r[0]))}},{key:"onOpen",value:function(){if(this.props.value){if(!this.props.gallery){var e=this.frame.state().get("selection");Object(w.castArray)(this.props.value).map(function(t){e.add(wp.media.attachment(t))})}M(Object(w.castArray)(this.props.value)).more()}}},{key:"onClose",value:function(){var e=this.props.onClose;e&&e()}},{key:"openModal",value:function(){this.frame.open()}},{key:"processMediaCaption",value:function(e){return e.caption?p()({},e,{caption:Object(x.parseWithAttributeSchema)(e.caption,{source:"children"})}):e}},{key:"render",value:function(){return this.props.render({open:this.openModal})}}]),t}(i.Component);Object(d.addFilter)("editor.MediaUpload","core/edit-post/components/media-upload/replace-media-upload",function(){return B});var N=n(34),I=n.n(N),D=n(3),L=n(6);var G=Object(L.compose)(Object(u.withSelect)(function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}}),Object(L.withState)({hasCopied:!1}))(function(e){var t=e.editedPostContent,n=e.hasCopied,o=e.setState;return Object(i.createElement)(D.ClipboardButton,{text:t,className:"components-menu-item__button",onCopy:function(){return o({hasCopied:!0})},onFinishCopy:function(){return o({hasCopied:!1})}},n?Object(C.__)("Copied!"):Object(C.__)("Copy All Content"))});Object(d.addFilter)("editPost.MoreMenu.tools","core/edit-post/more-menu/withCopyContentMenuItem",function(e){return I()(e).concat([Object(i.createElement)(G,{key:"copy-content-menu-item"})])});var R=n(27),F=n.n(R),U=n(33),V=n.n(U),H=Object(L.compose)(Object(u.withSelect)(function(e,t){var n=e("core/editor").getBlocks();if(Object(x.hasBlockSupport)(t.name,"multiple",!0))return{};var o=Object(w.find)(n,function(e){var n=e.name;return t.name===n});return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}}),Object(u.withDispatch)(function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/editor").selectBlock(n)}}})),W=Object(L.createHigherOrderComponent)(function(e){return H(function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=V()(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(i.createElement)(e,r);var a=Object(x.getBlockType)(r.name),l=function(e){var t=Object(x.findTransform)(Object(x.getBlockTransforms)("to",e),function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length});if(!t)return null;return Object(x.getBlockType)(t.blocks[0])}(r.name);return[Object(i.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(i.createElement)(e,F()({key:"block-edit"},r))),Object(i.createElement)(c.Warning,{key:"multiple-use-warning",actions:[Object(i.createElement)(D.Button,{key:"find-original",isLarge:!0,onClick:o},Object(C.__)("Find original")),Object(i.createElement)(D.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(C.__)("Remove")),l&&Object(i.createElement)(D.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(x.createBlock)(l.name,r.attributes))}},Object(C.__)("Transform into:")," ",l.title)]},Object(i.createElement)("strong",null,a.title,": "),Object(C.__)("This block may not be used more than once."))]})},"withMultipleValidation");Object(d.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",W);var q=n(31),X=n.n(q),z={editorMode:"visual",isGeneralSidebarDismissed:!1,panels:{"post-status":!0},features:{fixedToolbar:!1},pinnedPluginItems:{}},Q="edit-post/document",K=Object(u.combineReducers)({isGeneralSidebarDismissed:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":case"CLOSE_GENERAL_SIDEBAR":return"CLOSE_GENERAL_SIDEBAR"===t.type}return e},panels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z.panels,t=arguments.length>1?arguments[1]:void 0;return"TOGGLE_GENERAL_SIDEBAR_EDITOR_PANEL"===t.type?p()({},e,X()({},t.panel,!e[t.panel])):e},features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z.features,t=arguments.length>1?arguments[1]:void 0;return"TOGGLE_FEATURE"===t.type?p()({},e,X()({},t.feature,!e[t.feature])):e},editorMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z.editorMode,t=arguments.length>1?arguments[1]:void 0;return"SWITCH_MODE"===t.type?t.mode:e},pinnedPluginItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z.pinnedPluginItems,t=arguments.length>1?arguments[1]:void 0;return"TOGGLE_PINNED_PLUGIN_ITEM"===t.type?p()({},e,X()({},t.pluginName,!Object(w.get)(e,[t.pluginName],!0))):e}});var J=["normal","side","advanced"],Z=J.reduce(function(e,t){return e[t]={isActive:!1},e},{});var Y=Object(u.combineReducers)({preferences:K,activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},panel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"document",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ACTIVE_PANEL":return t.panel}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},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},metaBoxes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INITIALIZE_META_BOX_STATE":return J.reduce(function(n,o){return n[o]=p()({},e[o],{isActive:t.metaBoxes[o]}),n},p()({},e));case"META_BOX_SET_SAVED_DATA":return J.reduce(function(n,o){return n[o]=p()({},e[o],{data:t.dataPerLocation[o]}),n},p()({},e));default:return e}},isSavingMetaBoxes: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}}}),$=n(108),ee=n.n($),te=n(51),ne=n.n(te),oe=n(78),re=n(35),ie=n.n(re);function ce(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function ae(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function le(e){return{type:"OPEN_MODAL",name:e}}function se(){return{type:"CLOSE_MODAL"}}function ue(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function de(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function be(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function pe(e){return{type:"TOGGLE_GENERAL_SIDEBAR_EDITOR_PANEL",panel:e}}function me(e){return{type:"TOGGLE_FEATURE",feature:e}}function fe(e){return{type:"SWITCH_MODE",mode:e}}function Oe(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function he(e){return{type:"INITIALIZE_META_BOX_STATE",metaBoxes:e}}function je(){return{type:"REQUEST_META_BOX_UPDATES"}}function ge(){return{type:"META_BOX_UPDATES_SUCCESS"}}function ve(e){return{type:"META_BOX_SET_SAVED_DATA",dataPerLocation:e}}var Ee=n(42);function ye(e){return we(e,"editorMode","visual")}function Se(e){var t=Pe(e);return Object(w.includes)(["edit-post/document","edit-post/block"],t)}function _e(e){return!!Pe(e)&&!Se(e)}function Pe(e){return we(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function ke(e){return e.preferences}function we(e,t,n){var o=ke(e)[t];return void 0===o?n:o}function xe(e){return e.publishSidebarActive}function Ce(e,t){var n=we(e,"panels");return!!n&&!!n[t]}function Te(e,t){return e.activeModal===t}function Ae(e,t){return!!e.preferences.features[t]}function Me(e,t){var n=we(e,"pinnedPluginItems",{});return Object(w.get)(n,[t],!0)}function Be(e){return e.metaBoxes}function Ne(e,t){return Be(e)[t]}var Ie=Object(Ee.a)(function(e){return Object(w.some)(Be(e),function(e){return e.isActive})},function(e){return[e.metaBoxes]});function De(e){return e.isSavingMetaBoxes}var Le=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)},Ge=function(e,t){var n=e();return function(){var o=e();o!==n&&(n=o,t(o))}},Re={INITIALIZE_META_BOX_STATE:function(e,t){if(Object(w.some)(e.metaBoxes)){setTimeout(function(){var e=Object(u.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)});var n=Object(w.reduce)(e.metaBoxes,function(e,t,n){return t&&(e[n]=jQuery(Le(n)).serialize()),e},{});t.dispatch(ve(n));var o=Object(u.select)("core/editor").isSavingPost(),r=Object(u.select)("core/editor").isAutosavingPost();Object(u.subscribe)(function(){var e=Object(u.select)("core/editor").isSavingPost(),n=Object(u.select)("core/editor").isAutosavingPost(),i=o&&!r&&!e&&!n;o=e,r=n,i&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})})}},REQUEST_META_BOX_UPDATES:function(e,t){var n=t.getState(),o=Object(w.reduce)(Be(n),function(e,t,n){return t.isActive&&(e[n]=jQuery(Le(n)).serialize()),e},{});t.dispatch(ve(o));var r=Object(u.select)("core/editor").getCurrentPost(n),i=[!!r.comment_status&&["comment_status",r.comment_status],!!r.ping_status&&["ping_status",r.ping_status],!!r.sticky&&["sticky",r.sticky],["post_author",r.author]].filter(Boolean),c=new window.FormData(document.querySelector(".metabox-base-form")),a=Object(w.reduce)(Be(n),function(e,t,n){return t.isActive&&e.push(new window.FormData(Le(n))),e},[c]),l=Object(w.reduce)(a,function(e,t){var n=!0,o=!1,r=void 0;try{for(var i,c=t[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=ne()(i.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,r=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw r}}return e},new window.FormData);i.forEach(function(e){var t=ne()(e,2),n=t[0],o=t[1];return l.append(n,o)}),ie()({url:window._wpMetaBoxUrl,method:"POST",body:l,parse:!1}).then(function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})})},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(u.dispatch)("core/editor").clearSelectedBlock();var t="visual"===e.mode?Object(C.__)("Visual editor selected"):Object(C.__)("Code editor selected");Object(oe.speak)(t,"assertive")},INIT:function(e,t){Object(u.subscribe)(Ge(function(){return!!Object(u.select)("core/editor").getBlockSelectionStart()},function(e){Object(u.select)("core/edit-post").isEditorSidebarOpened()&&(e?t.dispatch(ce("edit-post/block")):t.dispatch(ce("edit-post/document")))}));var n=function(){return Object(u.select)("core/viewport").isViewportMatch("< medium")},o=function(){var e=null;return function(n){n?(e=Pe(t.getState()))&&t.dispatch({type:"CLOSE_GENERAL_SIDEBAR"}):e&&!Pe(t.getState())&&t.dispatch(ce(e))}}();o(n()),Object(u.subscribe)(Ge(n,o))}};var Fe=function(e){var t,n=[ee()(Re)],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=w.flowRight.apply(void 0,I()(t))(e.dispatch),e.dispatch=o,e},Ue=Object(u.registerStore)("core/edit-post",{reducer:Y,actions:o,selectors:r,persist:["preferences"]});Fe(Ue),Ue.dispatch({type:"INIT"});var Ve=Ue,He=n(13),We=n.n(He),qe=n(91),Xe=(n(438),n(41));var ze=function(e){function t(){var e;return f()(this,t),(e=g()(this,E()(t).apply(this,arguments))).state={historyId:null},e}return S()(t,e),h()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,r=t.postType,i=this.state.historyId;"trash"!==o?n===e.postId&&n===i||"auto-draft"===o||this.setBrowserURL(n):this.setTrashURL(n,r)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(Xe.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(Xe.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState(function(){return{historyId:e}})}},{key:"render",value:function(){return null}}]),t}(i.Component),Qe=Object(u.withSelect)(function(e){var t=(0,e("core/editor").getCurrentPost)();return{postId:t.id,postStatus:t.status,postType:t.type}})(ze),Ke=(n(437),n(436),n(435),n(14)),Je={toggleEditorMode:{raw:Ke.rawShortcut.secondary("m"),display:Ke.displayShortcut.secondary("m")},toggleSidebar:{raw:Ke.rawShortcut.primaryShift(","),display:Ke.displayShortcut.primaryShift(","),ariaLabel:Ke.shortcutAriaLabel.primaryShift(",")}},Ze=Object(L.compose)(Object(u.withSelect)(function(e){return{title:e("core/editor").getEditedPostAttribute("title")}}),Object(u.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,c=e.title;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"components-panel__header edit-post-sidebar-header__small"},Object(i.createElement)("span",{className:"edit-post-sidebar-header__title"},c||Object(C.__)("(no title)")),Object(i.createElement)(D.IconButton,{onClick:r,icon:"no-alt",label:o})),Object(i.createElement)("div",{className:We()("components-panel__header edit-post-sidebar-header",n)},t,Object(i.createElement)(D.IconButton,{onClick:r,icon:"no-alt",label:o,shortcut:Je.toggleSidebar})))}),Ye=Object(L.compose)(Object(u.withSelect)(function(e){return{count:e("core/editor").getSelectedBlockCount()}}),Object(u.withDispatch)(function(e){var t=e("core/edit-post").openGeneralSidebar,n=e("core/editor").clearSelectedBlock;return{openDocumentSettings:function(){t("edit-post/document"),n()},openBlockSettings:function(){t("edit-post/block")}}}))(function(e){var t=e.count,n=e.openDocumentSettings,o=e.openBlockSettings,r=e.sidebarName,c=0===t?1:t,a=1===c?Object(C.__)("Block"):Object(C.sprintf)(Object(C._n)("%d Block","%d Blocks",c),c);return Object(i.createElement)(Ze,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(C.__)("Close settings")},Object(i.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat("edit-post/document"===r?"is-active":""),"aria-label":Object(C.__)("Document settings"),"data-label":Object(C.__)("Document")},Object(C.__)("Document")),Object(i.createElement)("button",{onClick:o,className:"edit-post-sidebar__panel-tab ".concat("edit-post/block"===r?"is-active":""),"aria-label":Object(C.__)("Block settings"),"data-label":a},a))}),$e=(n(434),Object(D.createSlotFill)("Sidebar")),et=$e.Fill,tt=$e.Slot,nt=Object(L.compose)(Object(u.withSelect)(function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}}),Object(L.ifCondition)(function(e){return e.isActive}),D.withFocusReturn)(function(e){var t=e.children,n=e.label;return Object(i.createElement)(et,null,Object(i.createElement)("div",{className:"edit-post-sidebar",role:"region","aria-label":n,tabIndex:"-1"},t))});nt.Slot=tt;var ot=nt,rt=function(){return Object(i.createElement)(ot,{name:"edit-post/block",label:Object(C.__)("Editor settings")},Object(i.createElement)(Ye,{sidebarName:"edit-post/block"}),Object(i.createElement)(D.Panel,null,Object(i.createElement)(D.PanelBody,{className:"edit-post-block-sidebar__panel"},Object(i.createElement)(c.BlockInspector,null))))};n(433),n(432);var it=function(){return Object(i.createElement)(c.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(i.createElement)(D.PanelRow,{className:"edit-post-post-visibility"},Object(i.createElement)("span",null,Object(C.__)("Visibility")),!t&&Object(i.createElement)("span",null,Object(i.createElement)(c.PostVisibilityLabel,null)),t&&Object(i.createElement)(D.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(i.createElement)(D.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(i.createElement)(c.PostVisibilityLabel,null))},renderContent:function(){return Object(i.createElement)(c.PostVisibility,null)}}))}})};n(431);function ct(){return Object(i.createElement)(c.PostTrashCheck,null,Object(i.createElement)(D.PanelRow,null,Object(i.createElement)(c.PostTrash,null)))}n(430);var at=function(){return Object(i.createElement)(c.PostScheduleCheck,null,Object(i.createElement)(D.PanelRow,{className:"edit-post-post-schedule"},Object(i.createElement)("span",null,Object(C.__)("Publish")),Object(i.createElement)(D.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(i.createElement)(D.Button,{type:"button",className:"edit-post-post-schedule__toggle",onClick:t,"aria-expanded":n,isLink:!0},Object(i.createElement)(c.PostScheduleLabel,null))},renderContent:function(){return Object(i.createElement)(c.PostSchedule,null)}})))};var lt=function(){return Object(i.createElement)(c.PostStickyCheck,null,Object(i.createElement)(D.PanelRow,null,Object(i.createElement)(c.PostSticky,null)))};n(429);var st=function(){return Object(i.createElement)(c.PostAuthorCheck,null,Object(i.createElement)(D.PanelRow,null,Object(i.createElement)(c.PostAuthor,null)))};var ut=function(){return Object(i.createElement)(c.PostFormatCheck,null,Object(i.createElement)(D.PanelRow,null,Object(i.createElement)(c.PostFormat,null)))};var dt=function(){return Object(i.createElement)(c.PostPendingStatusCheck,null,Object(i.createElement)(D.PanelRow,null,Object(i.createElement)(c.PostPendingStatus,null)))},bt=Object(D.createSlotFill)("PluginPostStatusInfo"),pt=bt.Fill,mt=bt.Slot,ft=function(e){var t=e.children,n=e.className;return Object(i.createElement)(pt,null,Object(i.createElement)(D.PanelRow,{className:n},t))};ft.Slot=mt;var Ot=ft;var ht=Object(L.compose)([Object(u.withSelect)(function(e){return{isOpened:e("core/edit-post").isEditorSidebarPanelOpened("post-status")}}),Object(u.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleGeneralSidebarEditorPanel("post-status")}}})])(function(e){var t=e.isOpened,n=e.onTogglePanel;return Object(i.createElement)(D.PanelBody,{className:"edit-post-post-status",title:Object(C.__)("Status & Visibility"),opened:t,onToggle:n},Object(i.createElement)(Ot.Slot,null,function(e){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(it,null),Object(i.createElement)(at,null),Object(i.createElement)(ut,null),Object(i.createElement)(lt,null),Object(i.createElement)(dt,null),Object(i.createElement)(st,null),e,Object(i.createElement)(ct,null))}))});var jt=Object(L.compose)([Object(u.withSelect)(function(e){return{isOpened:e("core/edit-post").isEditorSidebarPanelOpened("post-excerpt")}}),Object(u.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleGeneralSidebarEditorPanel("post-excerpt")}}})])(function(e){var t=e.isOpened,n=e.onTogglePanel;return Object(i.createElement)(c.PostExcerptCheck,null,Object(i.createElement)(D.PanelBody,{title:Object(C.__)("Excerpt"),opened:t,onToggle:n},Object(i.createElement)(c.PostExcerpt,null)))});var gt=Object(L.compose)(Object(u.withSelect)(function(e,t){var n=Object(w.get)(t.taxonomy,["slug"]),o=n?"taxonomy-panel-".concat(n):"";return{panelName:o,isOpened:!!n&&e("core/edit-post").isEditorSidebarPanelOpened(o)}}),Object(u.withDispatch)(function(e,t){return{onTogglePanel:function(){e("core/edit-post").toggleGeneralSidebarEditorPanel(t.panelName)}}}))(function(e){var t=e.taxonomy,n=e.isOpened,o=e.onTogglePanel,r=e.children,c=Object(w.get)(t,["labels","menu_name"]);return c?Object(i.createElement)(D.PanelBody,{title:c,opened:n,onToggle:o},r):null});var vt=function(){return Object(i.createElement)(c.PostTaxonomiesCheck,null,Object(i.createElement)(c.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(i.createElement)(gt,{taxonomy:t},e)}}))};var Et=Object(u.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post").isEditorSidebarPanelOpened;return{postType:n(t("type")),isOpened:o("featured-image")}}),yt=Object(u.withDispatch)(function(e){var t=e("core/edit-post").toggleGeneralSidebarEditorPanel;return{onTogglePanel:Object(w.partial)(t,"featured-image")}}),St=Object(L.compose)(Et,yt)(function(e){var t=e.isOpened,n=e.postType,o=e.onTogglePanel;return Object(i.createElement)(c.PostFeaturedImageCheck,null,Object(i.createElement)(D.PanelBody,{title:Object(w.get)(n,["labels","featured_image"],Object(C.__)("Featured Image")),opened:t,onToggle:o},Object(i.createElement)(c.PostFeaturedImage,null)))});var _t=Object(L.compose)([Object(u.withSelect)(function(e){return{isOpened:e("core/edit-post").isEditorSidebarPanelOpened("discussion-panel")}}),Object(u.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleGeneralSidebarEditorPanel("discussion-panel")}}})])(function(e){var t=e.isOpened,n=e.onTogglePanel;return Object(i.createElement)(c.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(i.createElement)(D.PanelBody,{title:Object(C.__)("Discussion"),opened:t,onToggle:n},Object(i.createElement)(c.PostTypeSupportCheck,{supportKeys:"comments"},Object(i.createElement)(D.PanelRow,null,Object(i.createElement)(c.PostComments,null))),Object(i.createElement)(c.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(i.createElement)(D.PanelRow,null,Object(i.createElement)(c.PostPingbacks,null)))))});n(428);var Pt=function(){return Object(i.createElement)(c.PostLastRevisionCheck,null,Object(i.createElement)(D.PanelBody,{className:"edit-post-last-revision__panel"},Object(i.createElement)(c.PostLastRevision,null)))};var kt=Object(u.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post").isEditorSidebarPanelOpened,o=e("core").getPostType;return{isOpened:n("page-attributes"),postType:o(t("type"))}}),wt=Object(u.withDispatch)(function(e){var t=e("core/edit-post").toggleGeneralSidebarEditorPanel;return{onTogglePanel:Object(w.partial)(t,"page-attributes")}}),xt=Object(L.compose)(kt,wt)(function(e){var t=e.isOpened,n=e.onTogglePanel,o=e.postType;return o?Object(i.createElement)(c.PageAttributesCheck,null,Object(i.createElement)(D.PanelBody,{title:Object(w.get)(o,["labels","attributes"],Object(C.__)("Page Attributes")),opened:t,onToggle:n},Object(i.createElement)(c.PageTemplate,null),Object(i.createElement)(c.PageAttributesParent,null),Object(i.createElement)(D.PanelRow,null,Object(i.createElement)(c.PageAttributesOrder,null)))):null}),Ct=(n(427),function(e){function t(){var e;return f()(this,t),(e=g()(this,E()(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(k()(k()(e))),e}return S()(t,e),h()(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=We()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(i.createElement)("div",{className:o},n&&Object(i.createElement)(D.Spinner,null),Object(i.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(i.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(i.Component)),Tt=Object(u.withSelect)(function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}})(Ct);var At=Object(u.withSelect)(function(e,t){return{isActive:e("core/edit-post").getMetaBox(t.location).isActive}})(function(e){var t=e.location;return e.isActive?Object(i.createElement)(Tt,{location:t}):null}),Mt=function(){return Object(i.createElement)(ot,{name:"edit-post/document",label:Object(C.__)("Editor settings")},Object(i.createElement)(Ye,{sidebarName:"edit-post/document"}),Object(i.createElement)(D.Panel,null,Object(i.createElement)(ht,null),Object(i.createElement)(Pt,null),Object(i.createElement)(vt,null),Object(i.createElement)(St,null),Object(i.createElement)(jt,null),Object(i.createElement)(_t,null),Object(i.createElement)(xt,null),Object(i.createElement)(At,{location:"side"})))},Bt=(n(426),n(425),[{value:"visual",label:Object(C.__)("Visual Editor")},{value:"text",label:Object(C.__)("Code Editor")}]);var Nt=Object(L.compose)([Object(u.withSelect)(function(e){return{mode:e("core/edit-post").getEditorMode()}}),Object(u.withDispatch)(function(e,t){return{onSwitch:function(n){e("core/edit-post").switchEditorMode(n),t.onSelect(n)}}})])(function(e){var t=e.onSwitch,n=e.mode,o=Bt.map(function(e){return e.value!==n?p()({},e,{shortcut:Je.toggleEditorMode.display}):e});return Object(i.createElement)(D.MenuGroup,{label:Object(C.__)("Editor"),filterName:"editPost.MoreMenu.editor"},Object(i.createElement)(D.MenuItemsChoice,{choices:o,value:n,onSelect:t}))}),It=Object(D.createSlotFill)("PluginsMoreMenuGroup"),Dt=It.Fill,Lt=It.Slot;Dt.Slot=function(e){var t=e.fillProps;return Object(i.createElement)(Lt,{fillProps:t},function(e){return!Object(w.isEmpty)(e)&&Object(i.createElement)(D.MenuGroup,{label:Object(C.__)("Plugins")},e)})};var Gt=Dt;var Rt=Object(L.compose)([Object(u.withSelect)(function(e){return{isActive:e("core/nux").areTipsEnabled()}}),Object(u.withDispatch)(function(e,t){return{onToggle:function(){var n=e("core/nux"),o=n.disableTips,r=n.enableTips;t.isActive?o():r(),t.onToggle()}}})])(function(e){var t=e.onToggle,n=e.isActive;return Object(i.createElement)(D.MenuItem,{icon:n&&"yes",isSelected:n,role:"menuitemcheckbox",onClick:t},Object(C.__)("Show Tips"))});var Ft=Object(u.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal,n=e.onSelect;return Object(i.createElement)(D.MenuItem,{onClick:function(){n(),t("edit-post/keyboard-shortcut-help")},shortcut:Ke.displayShortcut.access("h")},Object(C.__)("Keyboard Shortcuts"))});var Ut=Object(L.compose)([Object(u.withSelect)(function(e,t){var n=t.feature;return{isActive:e("core/edit-post").isFeatureActive(n)}}),Object(u.withDispatch)(function(e,t){return{onToggle:function(){e("core/edit-post").toggleFeature(t.feature),t.onToggle()}}})])(function(e){var t=e.onToggle,n=e.isActive,o=e.label;return Object(i.createElement)(D.MenuItem,{icon:n&&"yes",isSelected:n,onClick:t,role:"menuitemcheckbox"},o)});var Vt=Object(l.ifViewportMatches)("medium")(function(e){var t=e.onClose;return Object(i.createElement)(D.MenuGroup,{label:Object(C.__)("Writing"),filterName:"editPost.MoreMenu.writing"},Object(i.createElement)(Ut,{feature:"fixedToolbar",label:Object(C.__)("Unified Toolbar"),onToggle:t}),Object(i.createElement)(Ut,{feature:"focusMode",label:Object(C.__)("Spotlight Mode"),onToggle:t}),Object(i.createElement)(Ut,{feature:"fullscreenMode",label:Object(C.__)("Fullscreen Mode"),onToggle:t}))}),Ht=function(){return Object(i.createElement)(D.Dropdown,{className:"edit-post-more-menu",contentClassName:"edit-post-more-menu__content",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(i.createElement)(D.IconButton,{icon:"ellipsis",label:Object(C._x)("More","button to expand options"),onClick:n,"aria-expanded":t})},renderContent:function(e){var t=e.onClose;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Vt,{onClose:t}),Object(i.createElement)(Nt,{onSelect:t}),Object(i.createElement)(Gt.Slot,{fillProps:{onClose:t}}),Object(i.createElement)(D.MenuGroup,{label:Object(C.__)("Tools"),filterName:"editPost.MoreMenu.tools"},Object(i.createElement)(D.MenuItem,{role:"menuitem",href:"edit.php?post_type=wp_block"},Object(C.__)("Manage All Reusable Blocks")),Object(i.createElement)(Rt,{onToggle:t}),Object(i.createElement)(Ft,{onSelect:t})))}})};n(424),n(423);var Wt=Object(u.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(i.createElement)(D.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(i.createElement)(D.IconButton,{icon:"no-alt",href:Object(Xe.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(w.get)(n,["labels","view_items"],Object(C.__)("View Posts"))})):null});var qt=Object(L.compose)([Object(u.withSelect)(function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),mode:e("core/edit-post").getEditorMode()}}),Object(l.withViewportMatch)({isLargeViewport:"medium"})])(function(e){var t=e.hasFixedToolbar,n=e.isLargeViewport,o=e.mode;return Object(i.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":Object(C.__)("Editor Toolbar")},Object(i.createElement)(Wt,null),Object(i.createElement)("div",null,Object(i.createElement)(c.Inserter,{disabled:"visual"!==o,position:"bottom right"}),Object(i.createElement)(a.DotTip,{id:"core/editor.inserter"},Object(C.__)("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(i.createElement)(c.EditorHistoryUndo,null),Object(i.createElement)(c.EditorHistoryRedo,null),Object(i.createElement)(c.TableOfContents,null),t&&n&&Object(i.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(i.createElement)(c.BlockToolbar,null)))}),Xt=(n(422),Object(D.createSlotFill)("PinnedPlugins")),zt=Xt.Fill,Qt=Xt.Slot;zt.Slot=function(e){return Object(i.createElement)(Qt,e,function(e){return!Object(w.isEmpty)(e)&&Object(i.createElement)("div",{className:"edit-post-pinned-plugins"},e)})};var Kt=zt;var Jt=Object(L.compose)(Object(u.withSelect)(function(e){return{isEditorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),hasBlockSelection:!!e("core/editor").getBlockSelectionStart()}}),Object(u.withDispatch)(function(e,t){var n=t.hasBlockSelection,o=e("core/edit-post"),r=o.openGeneralSidebar,i=o.closeGeneralSidebar,c=o.togglePublishSidebar,a=n?"edit-post/block":"edit-post/document";return{openGeneralSidebar:function(){return r(a)},closeGeneralSidebar:i,togglePublishSidebar:c,hasBlockSelection:void 0}}))(function(e){var t=e.isEditorSidebarOpened,n=e.openGeneralSidebar,o=e.closeGeneralSidebar,r=e.isPublishSidebarOpened,l=e.togglePublishSidebar,s=e.hasActiveMetaboxes,u=e.isSaving,d=t?o:n;return Object(i.createElement)("div",{role:"region","aria-label":Object(C.__)("Editor top bar"),className:"edit-post-header",tabIndex:"-1"},Object(i.createElement)(qt,null),!r&&Object(i.createElement)("div",{className:"edit-post-header__settings"},Object(i.createElement)(c.PostSavedState,{forceIsDirty:s,forceIsSaving:u}),Object(i.createElement)(c.PostPreviewButton,null),Object(i.createElement)(c.PostPublishPanelToggle,{isOpen:r,onToggle:l,forceIsDirty:s,forceIsSaving:u}),Object(i.createElement)("div",null,Object(i.createElement)(D.IconButton,{icon:"admin-generic",label:Object(C.__)("Settings"),onClick:d,isToggled:t,"aria-expanded":t,shortcut:Je.toggleSidebar}),Object(i.createElement)(a.DotTip,{id:"core/editor.settings"},Object(C.__)("You’ll find more settings for your page and blocks in the sidebar. Click “Settings” to open it."))),Object(i.createElement)(Kt.Slot,null),Object(i.createElement)(Ht,null)))});n(421);var Zt=function(){return Object(i.createElement)("div",{className:"edit-post-text-editor"},Object(i.createElement)("div",{className:"edit-post-text-editor__body"},Object(i.createElement)(c.PostTitle,null),Object(i.createElement)(c.PostTextEditor,null)))};n(420);var Yt=Object(L.compose)(Object(u.withSelect)(function(e){return{areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}}),Object(u.withDispatch)(function(e){return{openEditorSidebar:function(){return e("core/edit-post").openGeneralSidebar("edit-post/block")},closeSidebar:e("core/edit-post").closeGeneralSidebar}}),D.withSpokenMessages)(function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,r=e.onClick,c=void 0===r?w.noop:r,a=e.small,l=void 0!==a&&a,s=e.speak,u=t?Object(C.__)("Hide Block Settings"):Object(C.__)("Show Block Settings");return Object(i.createElement)(D.MenuItem,{className:"editor-block-settings-menu__control",onClick:Object(w.flow)(t?n:o,function(){s(t?Object(C.__)("Block settings closed"):Object(C.__)("Additional settings are now available in the Editor block settings sidebar"))},c),icon:"admin-generic",label:l?u:void 0,shortcut:Je.toggleSidebar},!l&&u)}),$t=Object(D.createSlotFill)("PluginBlockSettingsMenuGroup"),en=$t.Fill,tn=$t.Slot;en.Slot=Object(u.withSelect)(function(e,t){var n=t.fillProps.clientIds;return{selectedBlocks:e("core/editor").getBlocksByClientId(n)}})(function(e){var t=e.fillProps,n=e.selectedBlocks;return n=Object(w.map)(n,function(e){return e.name}),Object(i.createElement)(tn,{fillProps:p()({},t,{selectedBlocks:n})},function(e){return!Object(w.isEmpty)(e)&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"editor-block-settings-menu__separator"}),e)})});var nn=en;var on=function(){return Object(i.createElement)(c.BlockSelectionClearer,{className:"edit-post-visual-editor"},Object(i.createElement)(c.EditorGlobalKeyboardShortcuts,null),Object(i.createElement)(c.CopyHandler,null),Object(i.createElement)(c.MultiSelectScrollIntoView,null),Object(i.createElement)(c.WritingFlow,null,Object(i.createElement)(c.ObserveTyping,null,Object(i.createElement)(c.PostTitle,null),Object(i.createElement)(c.BlockList,null))),Object(i.createElement)(c._BlockSettingsMenuFirstItem,null,function(e){var t=e.onClose;return Object(i.createElement)(Yt,{onClick:t})}),Object(i.createElement)(c._BlockSettingsMenuPluginsExtension,null,function(e){var t=e.clientIds,n=e.onClose;return Object(i.createElement)(nn.Slot,{fillProps:{clientIds:t,onClose:n}})}))},rn=function(e){function t(){var e;return f()(this,t),(e=g()(this,E()(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(k()(k()(e))),e.toggleSidebar=e.toggleSidebar.bind(k()(k()(e))),e}return S()(t,e),h()(t,[{key:"toggleMode",value:function(){var e=this.props,t=e.mode;(0,e.switchMode)("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(i.createElement)(D.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},X()(e,Je.toggleEditorMode.raw,this.toggleMode),X()(e,Je.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(i.Component),cn=Object(L.compose)([Object(u.withSelect)(function(e){return{mode:e("core/edit-post").getEditorMode(),isEditorSidebarOpen:e("core/edit-post").isEditorSidebarOpened(),hasBlockSelection:!!e("core/editor").getBlockSelectionStart()}}),Object(u.withDispatch)(function(e,t){var n=t.hasBlockSelection;return{switchMode:function(t){e("core/edit-post").switchEditorMode(t)},openSidebar:function(){var t=n?"edit-post/block":"edit-post/document";e("core/edit-post").openGeneralSidebar(t)},closeSidebar:e("core/edit-post").closeGeneralSidebar}})])(rn),an=Ke.displayShortcutList.primary,ln=Ke.displayShortcutList.primaryShift,sn=Ke.displayShortcutList.primaryAlt,un=Ke.displayShortcutList.secondary,dn=Ke.displayShortcutList.access,bn=Ke.displayShortcutList.ctrl,pn=Ke.displayShortcutList.ctrlShift,mn=Ke.displayShortcutList.shiftAlt,fn=[{title:Object(C.__)("Global shortcuts"),shortcuts:[{keyCombination:dn("h"),description:Object(C.__)("Display this help.")},{keyCombination:an("s"),description:Object(C.__)("Save your changes.")},{keyCombination:an("z"),description:Object(C.__)("Undo your last changes.")},{keyCombination:ln("z"),description:Object(C.__)("Redo your last undo.")},{keyCombination:ln(","),description:Object(C.__)("Show or hide the settings sidebar."),ariaLabel:Ke.shortcutAriaLabel.primaryShift(",")},{keyCombination:bn("`"),description:Object(C.__)("Navigate to the next part of the editor."),ariaLabel:Ke.shortcutAriaLabel.ctrl("`")},{keyCombination:pn("`"),description:Object(C.__)("Navigate to the previous part of the editor."),ariaLabel:Ke.shortcutAriaLabel.ctrlShift("`")},{keyCombination:mn("n"),description:Object(C.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:mn("p"),description:Object(C.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:un("m"),description:Object(C.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(C.__)("Selection shortcuts"),shortcuts:[{keyCombination:an("a"),description:Object(C.__)("Select all text when typing. Press again to select all blocks.")},{keyCombination:"Esc",description:Object(C.__)("Clear selection."),ariaLabel:Object(C.__)("Escape")}]},{title:Object(C.__)("Block shortcuts"),shortcuts:[{keyCombination:ln("d"),description:Object(C.__)("Duplicate the selected block(s).")},{keyCombination:sn("backspace"),description:Object(C.__)("Remove the selected block(s).")},{keyCombination:sn("t"),description:Object(C.__)("Insert a new block before the selected block(s).")},{keyCombination:sn("y"),description:Object(C.__)("Insert a new block after the selected block(s).")},{keyCombination:"/",description:Object(C.__)("Change the block type after adding a new paragraph."),ariaLabel:Object(C.__)("Forward-slash")}]},{title:Object(C.__)("Text formatting"),shortcuts:[{keyCombination:an("b"),description:Object(C.__)("Make the selected text bold.")},{keyCombination:an("i"),description:Object(C.__)("Make the selected text italic.")},{keyCombination:an("u"),description:Object(C.__)("Underline the selected text.")},{keyCombination:an("k"),description:Object(C.__)("Convert the selected text into a link.")},{keyCombination:dn("s"),description:Object(C.__)("Remove a link.")},{keyCombination:dn("d"),description:Object(C.__)("Add a strikethrough to the selected text.")},{keyCombination:dn("x"),description:Object(C.__)("Display the selected text in a monospaced font.")}]}],On=(n(419),"edit-post/keyboard-shortcut-help"),hn=function(e){var t=e.shortcuts;return Object(i.createElement)("dl",{className:"edit-post-keyboard-shortcut-help__shortcut-list"},t.map(function(e,t){var n=e.keyCombination,o=e.description,r=e.ariaLabel;return Object(i.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(i.createElement)("dt",{className:"edit-post-keyboard-shortcut-help__shortcut-term"},Object(i.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(i.createElement)(i.Fragment,{key:t},e):Object(i.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help__shortcut-key"},e)})}(Object(w.castArray)(n)))),Object(i.createElement)("dd",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o))}))},jn=function(e){var t=e.title,n=e.shortcuts;return Object(i.createElement)("section",{className:"edit-post-keyboard-shortcut-help__section"},Object(i.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(i.createElement)(hn,{shortcuts:n}))};var gn=Object(L.compose)([Object(u.withSelect)(function(e){return{isModalActive:e("core/edit-post").isModalActive(On)}}),Object(u.withDispatch)(function(e,t){var n=t.isModalActive,o=e("core/edit-post"),r=o.openModal,i=o.closeModal;return{toggleModal:function(){return n?i():r(On)}}})])(function(e){var t=e.isModalActive,n=e.toggleModal,o=Object(i.createElement)("span",{className:"edit-post-keyboard-shortcut-help__title"},Object(C.__)("Keyboard Shortcuts"));return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(D.KeyboardShortcuts,{bindGlobal:!0,shortcuts:X()({},Ke.rawShortcut.access("h"),n)}),t&&Object(i.createElement)(D.Modal,{className:"edit-post-keyboard-shortcut-help",title:o,closeLabel:Object(C.__)("Close"),onRequestClose:n},fn.map(function(e,t){return Object(i.createElement)(jn,F()({key:t},e))})))}),vn=Object(D.createSlotFill)("PluginPostPublishPanel"),En=vn.Fill,yn=vn.Slot,Sn=function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,c=void 0!==r&&r;return Object(i.createElement)(En,null,Object(i.createElement)(D.PanelBody,{className:n,initialOpen:c||!o,title:o},t))};Sn.Slot=yn;var _n=Sn,Pn=Object(D.createSlotFill)("PluginPrePublishPanel"),kn=Pn.Fill,wn=Pn.Slot,xn=function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,c=void 0!==r&&r;return Object(i.createElement)(kn,null,Object(i.createElement)(D.PanelBody,{className:n,initialOpen:c||!o,title:o},t))};xn.Slot=wn;var Cn=xn,Tn=(n(418),function(e){function t(){return f()(this,t),g()(this,E()(t).apply(this,arguments))}return S()(t,e),h()(t,[{key:"componentDidMount",value:function(){this.sync()}},{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}(i.Component)),An=Object(u.withSelect)(function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}})(Tn);var Mn=Object(L.compose)(Object(u.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"),metaBoxes:e("core/edit-post").getMetaBoxes(),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes()}}),Object(u.withDispatch)(function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}}),D.navigateRegions,Object(l.withViewportMatch)({isMobileViewport:"< small"}))(function(e){var t=e.mode,n=e.editorSidebarOpened,o=e.pluginSidebarOpened,r=e.publishSidebarOpened,a=e.hasFixedToolbar,l=e.closePublishSidebar,s=e.togglePublishSidebar,u=e.metaBoxes,d=e.hasActiveMetaboxes,b=e.isSaving,p=e.isMobileViewport,m=n||o||r,f=We()("edit-post-layout",{"is-sidebar-opened":m,"has-fixed-toolbar":a}),O={role:"region","aria-label":Object(C.__)("Editor publish"),tabIndex:-1};return Object(i.createElement)("div",{className:f},Object(i.createElement)(An,null),Object(i.createElement)(Qe,null),Object(i.createElement)(c.UnsavedChangesWarning,{forceIsDirty:function(){return Object(w.some)(u,function(e,t){return e.isActive&&jQuery(Le(t)).serialize()!==e.data})}}),Object(i.createElement)(c.AutosaveMonitor,null),Object(i.createElement)(Jt,null),Object(i.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(C.__)("Editor content"),tabIndex:"-1"},Object(i.createElement)(c.EditorNotices,null),Object(i.createElement)(c.PreserveScrollInReorder,null),Object(i.createElement)(cn,null),Object(i.createElement)(gn,null),"text"===t&&Object(i.createElement)(Zt,null),"visual"===t&&Object(i.createElement)(on,null),Object(i.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(i.createElement)(At,{location:"normal"})),Object(i.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(i.createElement)(At,{location:"advanced"}))),r?Object(i.createElement)(c.PostPublishPanel,F()({},O,{onClose:l,forceIsDirty:d,forceIsSaving:b,PrePublishExtension:Cn.Slot,PostPublishExtension:_n.Slot})):Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",F()({className:"edit-post-toggle-publish-panel"},O),Object(i.createElement)(D.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:s,"aria-expanded":!1},Object(C.__)("Open publish panel"))),Object(i.createElement)(Mt,null),Object(i.createElement)(rt,null),Object(i.createElement)(ot.Slot,null),p&&m&&Object(i.createElement)(D.ScrollLock,null)),Object(i.createElement)(D.Popover.Slot,null),Object(i.createElement)(qe.PluginArea,null))});var Bn=Object(u.withSelect)(function(e,t){var n=t.postId,o=t.postType;return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),focusMode:e("core/edit-post").isFeatureActive("focusMode"),post:e("core").getEntityRecord("postType",o,n)}})(function(e){var t=e.settings,n=e.hasFixedToolbar,o=e.focusMode,r=e.post,a=e.overridePost,l=e.onError,s=V()(e,["settings","hasFixedToolbar","focusMode","post","overridePost","onError"]);if(!r)return null;var u=p()({},t,{hasFixedToolbar:n,focusMode:o});return Object(i.createElement)(i.StrictMode,null,Object(i.createElement)(c.EditorProvider,F()({settings:u,post:p()({},r,a)},s),Object(i.createElement)(c.ErrorBoundary,{onError:l},Object(i.createElement)(Mn,null))))}),Nn=function(e,t){return!Array.isArray(t)||function(e,t){return 0===Object(w.difference)(e,t).length}(e,t)},In=function(e){var t=e.allowedBlocks,n=e.icon,o=e.label,r=e.onClick,c=e.small,a=e.role;return Object(i.createElement)(nn,null,function(e){var l=e.selectedBlocks,s=e.onClose;return Nn(l,t)?Object(i.createElement)(D.IconButton,{className:"editor-block-settings-menu__control",onClick:Object(L.compose)(r,s),icon:n||"admin-plugins",label:c?o:void 0,role:a},!c&&o):null})};var Dn=Object(L.compose)(Object(qe.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}}),Object(u.withSelect)(function(e,t){var n=t.sidebarName,o=e("core/edit-post"),r=o.getActiveGeneralSidebarName,i=o.isPluginItemPinned;return{isActive:r()===n,isPinned:i(n)}}),Object(u.withDispatch)(function(e,t){var n=t.isActive,o=t.sidebarName,r=e("core/edit-post"),i=r.closeGeneralSidebar,c=r.openGeneralSidebar,a=r.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?i():c(o)}}}))(function(e){var t=e.children,n=e.icon,o=e.isActive,r=e.isPinnable,c=void 0===r||r,a=e.isPinned,l=e.sidebarName,s=e.title,u=e.togglePin,d=e.toggleSidebar;return Object(i.createElement)(i.Fragment,null,c&&Object(i.createElement)(Kt,null,a&&Object(i.createElement)(D.IconButton,{icon:n,label:s,onClick:d,isToggled:o,"aria-expanded":o})),Object(i.createElement)(ot,{name:l,label:Object(C.__)("Editor plugins")},Object(i.createElement)(Ze,{closeLabel:Object(C.__)("Close plugin")},Object(i.createElement)("strong",null,s),c&&Object(i.createElement)(D.IconButton,{icon:a?"star-filled":"star-empty",label:a?Object(C.__)("Unpin from toolbar"):Object(C.__)("Pin to toolbar"),onClick:u,isToggled:a,"aria-expanded":a})),Object(i.createElement)(D.Panel,null,t)))}),Ln=Object(L.compose)(Object(qe.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}}),Object(u.withSelect)(function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}}),Object(u.withDispatch)(function(e,t){var n=t.isSelected,o=t.sidebarName,r=e("core/edit-post"),i=r.closeGeneralSidebar,c=r.openGeneralSidebar;return{onClick:n?i:function(){return c(o)}}}))(function(e){var t=e.children,n=e.icon,o=e.isSelected,r=e.onClick;return Object(i.createElement)(Gt,null,function(e){return Object(i.createElement)(D.MenuItem,{icon:o?"yes":n,isSelected:o,role:"menuitemcheckbox",onClick:Object(L.compose)(r,e.onClose)},t)})});function Gn(e,t,n,o,r){Object(i.unmountComponentAtNode)(n);var c=Gn.bind(null,e,t,n,o,r);Object(i.render)(Object(i.createElement)(Bn,{settings:o,onError:c,postId:t,postType:e,overridePost:r,recovery:!0}),n)}function Rn(e,t,n,o,r){var c=document.getElementById(e),a=Gn.bind(null,t,n,c,o,r);return Object(s.registerCoreBlocks)(),Object(u.dispatch)("core/nux").triggerGuide(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"]),Object(i.render)(Object(i.createElement)(Bn,{settings:o,onError:a,postId:n,postType:t,overridePost:r}),c),{initializeMetaBoxes:function(e){Ve.dispatch(he(e))}}}n.d(t,"reinitializeEditor",function(){return Gn}),n.d(t,"initializeEditor",function(){return Rn}),n.d(t,"PluginBlockSettingsMenuItem",function(){return In}),n.d(t,"PluginPostPublishPanel",function(){return _n}),n.d(t,"PluginPostStatusInfo",function(){return Ot}),n.d(t,"PluginPrePublishPanel",function(){return Cn}),n.d(t,"PluginSidebar",function(){return Dn}),n.d(t,"PluginSidebarMoreMenuItem",function(){return Ln})},22:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},23:function(e,t,n){var o=n(84),r=n(5);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?r(e):t}},24:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},27:function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},28:function(e,t,n){var o=n(31);e.exports=function(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){o(e,t,n[t])})}return e}},29:function(e,t){!function(){e.exports=this.wp.hooks}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31: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}},33:function(e,t,n){var o=n(105);e.exports=function(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},34:function(e,t,n){var o=n(104),r=n(103),i=n(102);e.exports=function(e){return o(e)||r(e)||i()}},35:function(e,t){!function(){e.exports=this.wp.apiFetch}()},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t){!function(){e.exports=this.wp.url}()},418:function(e,t){},419:function(e,t){},42:function(e,t,n){"use strict";var o,r;function i(e){return[e]}function c(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,i,c,a=arguments.length;for(i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];for(c=t.apply(null,i),(n=s(c)).isUniqueByDependants||(n.lastDependants&&!l(c,n.lastDependants,0)&&n.clear(),n.lastDependants=c),o=n.head;o;){if(l(o.args,i,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,i)},i[0]=null,o.args=i,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=i),s=r?function(e){var t,r,i,l,s=n,u=!0;for(t=0;t<e.length;t++){if(!c(r=e[t])){u=!1;break}s.has(r)?s=s.get(r):(i=new WeakMap,s.set(r,i),s=i)}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}},420:function(e,t){},421:function(e,t){},422:function(e,t){},423:function(e,t){},424:function(e,t){},425:function(e,t){},426:function(e,t){},427:function(e,t){},428:function(e,t){},429:function(e,t){},430:function(e,t){},431:function(e,t){},432:function(e,t){},433:function(e,t){},434:function(e,t){},435:function(e,t){},436:function(e,t){},437:function(e,t){},438:function(e,t){},439:function(e,t){},5: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}},50:function(e,t){!function(){e.exports=this.wp.viewport}()},51:function(e,t,n){var o=n(101),r=n(100),i=n(99);e.exports=function(e,t){return o(e)||r(e,t)||i()}},6:function(e,t){!function(){e.exports=this.wp.compose}()},61:function(e,t){!function(){e.exports=this.wp.nux}()},78:function(e,t){!function(){e.exports=this.wp.a11y}()},8:function(e,t){!function(){e.exports=this.wp.editor}()},84:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=o=function(e){return n(e)}:e.exports=o=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},o(t)}e.exports=o},9:function(e,t){!function(){e.exports=this.wp.blocks}()},91:function(e,t){!function(){e.exports=this.wp.plugins}()},99:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}}});