/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.editor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=422)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.blocks}()},11:function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},191:function(e,t,n){"use strict";var r=n(5),o=n(19),i=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,s=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:o,innerState:e}}e.exports=function(e){function t(t,n,o){return t.length&&(t=t.concat([{action:o}])),c(n=e(n,o),o),r({optimist:t},n)}return function(n,o){if(o.optimist)switch(o.optimist.type){case"BEGIN":return function(t,n){var o=a(t),i=o.optimist,s=o.innerState;return i=i.concat([{beforeState:s,action:n}]),c(s=e(s,n),n),r({optimist:i},s)}(n,o);case"COMMIT":return function(e,n){var r=a(e),o=r.optimist,c=r.innerState,s=[],u=!1,l=!1;return o.forEach((function(e){u?e.beforeState&&i(e.action,n.optimist.id)?(l=!0,s.push({action:e.action})):s.push(e):e.beforeState&&!i(e.action,n.optimist.id)?(u=!0,s.push(e)):e.beforeState&&i(e.action,n.optimist.id)&&(l=!0)})),l||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=s,c,n)}(n,o);case"REVERT":return function(n,r){var o=a(n),s=o.optimist,u=o.innerState,l=[],d=!1,p=!1,b=u;return s.forEach((function(t){t.beforeState&&i(t.action,r.optimist.id)&&(b=t.beforeState,p=!0),i(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(p&&t.beforeState?l.push({beforeState:b,action:t.action}):l.push(t)),p&&(b=e(b,t.action),c(u,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(s=l,b,r)}(n,o)}var s=a(n),u=s.optimist,l=s.innerState;if(n&&!u.length){var d=e(l,o);return d===l?n:(c(d,o),r({optimist:u},d))}return t(u,l,o)}},e.exports.BEGIN="BEGIN",e.exports.COMMIT="COMMIT",e.exports.REVERT="REVERT"},42:function(e,t){!function(){e.exports=this.wp.apiFetch}()},422:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"setupEditor",(function(){return ce})),n.d(r,"__experimentalTearDownEditor",(function(){return ae})),n.d(r,"resetPost",(function(){return se})),n.d(r,"resetAutosave",(function(){return ue})),n.d(r,"__experimentalRequestPostUpdateStart",(function(){return le})),n.d(r,"__experimentalRequestPostUpdateFinish",(function(){return de})),n.d(r,"updatePost",(function(){return pe})),n.d(r,"setupEditorState",(function(){return be})),n.d(r,"editPost",(function(){return fe})),n.d(r,"__experimentalOptimisticUpdatePost",(function(){return he})),n.d(r,"savePost",(function(){return me})),n.d(r,"refreshPost",(function(){return Oe})),n.d(r,"trashPost",(function(){return ve})),n.d(r,"autosave",(function(){return ge})),n.d(r,"__experimentalLocalAutosave",(function(){return je})),n.d(r,"redo",(function(){return ye})),n.d(r,"undo",(function(){return _e})),n.d(r,"createUndoLevel",(function(){return ke})),n.d(r,"updatePostLock",(function(){return Ee})),n.d(r,"__experimentalFetchReusableBlocks",(function(){return Se})),n.d(r,"__experimentalReceiveReusableBlocks",(function(){return Pe})),n.d(r,"__experimentalSaveReusableBlock",(function(){return we})),n.d(r,"__experimentalDeleteReusableBlock",(function(){return Ce})),n.d(r,"__experimentalUpdateReusableBlock",(function(){return Te})),n.d(r,"__experimentalConvertBlockToStatic",(function(){return Be})),n.d(r,"__experimentalConvertBlockToReusable",(function(){return xe})),n.d(r,"enablePublishSidebar",(function(){return Ie})),n.d(r,"disablePublishSidebar",(function(){return Ae})),n.d(r,"lockPostSaving",(function(){return Re})),n.d(r,"unlockPostSaving",(function(){return De})),n.d(r,"lockPostAutosaving",(function(){return Le})),n.d(r,"unlockPostAutosaving",(function(){return Ne})),n.d(r,"resetEditorBlocks",(function(){return Ue})),n.d(r,"updateEditorSettings",(function(){return Fe})),n.d(r,"resetBlocks",(function(){return Ve})),n.d(r,"receiveBlocks",(function(){return ze})),n.d(r,"updateBlock",(function(){return He})),n.d(r,"updateBlockAttributes",(function(){return We})),n.d(r,"selectBlock",(function(){return Ke})),n.d(r,"startMultiSelect",(function(){return Ge})),n.d(r,"stopMultiSelect",(function(){return qe})),n.d(r,"multiSelect",(function(){return Qe})),n.d(r,"clearSelectedBlock",(function(){return Ye})),n.d(r,"toggleSelection",(function(){return Xe})),n.d(r,"replaceBlocks",(function(){return Ze})),n.d(r,"replaceBlock",(function(){return Je})),n.d(r,"moveBlocksDown",(function(){return $e})),n.d(r,"moveBlocksUp",(function(){return et})),n.d(r,"moveBlockToPosition",(function(){return tt})),n.d(r,"insertBlock",(function(){return nt})),n.d(r,"insertBlocks",(function(){return rt})),n.d(r,"showInsertionPoint",(function(){return ot})),n.d(r,"hideInsertionPoint",(function(){return it})),n.d(r,"setTemplateValidity",(function(){return ct})),n.d(r,"synchronizeTemplate",(function(){return at})),n.d(r,"mergeBlocks",(function(){return st})),n.d(r,"removeBlocks",(function(){return ut})),n.d(r,"removeBlock",(function(){return lt})),n.d(r,"toggleBlockMode",(function(){return dt})),n.d(r,"startTyping",(function(){return pt})),n.d(r,"stopTyping",(function(){return bt})),n.d(r,"enterFormattedText",(function(){return ft})),n.d(r,"exitFormattedText",(function(){return ht})),n.d(r,"insertDefaultBlock",(function(){return mt})),n.d(r,"updateBlockListSettings",(function(){return Ot}));var o={};n.r(o),n.d(o,"hasEditorUndo",(function(){return Pt})),n.d(o,"hasEditorRedo",(function(){return wt})),n.d(o,"isEditedPostNew",(function(){return Ct})),n.d(o,"hasChangedContent",(function(){return Tt})),n.d(o,"isEditedPostDirty",(function(){return Bt})),n.d(o,"hasNonPostEntityChanges",(function(){return xt})),n.d(o,"isCleanNewPost",(function(){return It})),n.d(o,"getCurrentPost",(function(){return At})),n.d(o,"getCurrentPostType",(function(){return Rt})),n.d(o,"getCurrentPostId",(function(){return Dt})),n.d(o,"getCurrentPostRevisionsCount",(function(){return Lt})),n.d(o,"getCurrentPostLastRevisionId",(function(){return Nt})),n.d(o,"getPostEdits",(function(){return Ut})),n.d(o,"getReferenceByDistinctEdits",(function(){return Ft})),n.d(o,"getCurrentPostAttribute",(function(){return Mt})),n.d(o,"getEditedPostAttribute",(function(){return Vt})),n.d(o,"getAutosaveAttribute",(function(){return zt})),n.d(o,"getEditedPostVisibility",(function(){return Ht})),n.d(o,"isCurrentPostPending",(function(){return Wt})),n.d(o,"isCurrentPostPublished",(function(){return Kt})),n.d(o,"isCurrentPostScheduled",(function(){return Gt})),n.d(o,"isEditedPostPublishable",(function(){return qt})),n.d(o,"isEditedPostSaveable",(function(){return Qt})),n.d(o,"isEditedPostEmpty",(function(){return Yt})),n.d(o,"isEditedPostAutosaveable",(function(){return Xt})),n.d(o,"getAutosave",(function(){return Zt})),n.d(o,"hasAutosave",(function(){return Jt})),n.d(o,"isEditedPostBeingScheduled",(function(){return $t})),n.d(o,"isEditedPostDateFloating",(function(){return en})),n.d(o,"isSavingPost",(function(){return tn})),n.d(o,"didPostSaveRequestSucceed",(function(){return nn})),n.d(o,"didPostSaveRequestFail",(function(){return rn})),n.d(o,"isAutosavingPost",(function(){return on})),n.d(o,"isPreviewingPost",(function(){return cn})),n.d(o,"getEditedPostPreviewLink",(function(){return an})),n.d(o,"getSuggestedPostFormat",(function(){return sn})),n.d(o,"getBlocksForSerialization",(function(){return un})),n.d(o,"getEditedPostContent",(function(){return ln})),n.d(o,"__experimentalGetReusableBlock",(function(){return dn})),n.d(o,"__experimentalIsSavingReusableBlock",(function(){return pn})),n.d(o,"__experimentalIsFetchingReusableBlock",(function(){return bn})),n.d(o,"__experimentalGetReusableBlocks",(function(){return fn})),n.d(o,"getStateBeforeOptimisticTransaction",(function(){return hn})),n.d(o,"isPublishingPost",(function(){return mn})),n.d(o,"isPermalinkEditable",(function(){return On})),n.d(o,"getPermalink",(function(){return vn})),n.d(o,"getPermalinkParts",(function(){return gn})),n.d(o,"inSomeHistory",(function(){return jn})),n.d(o,"isPostLocked",(function(){return yn})),n.d(o,"isPostSavingLocked",(function(){return _n})),n.d(o,"isPostAutosavingLocked",(function(){return kn})),n.d(o,"isPostLockTakeover",(function(){return En})),n.d(o,"getPostLockUser",(function(){return Sn})),n.d(o,"getActivePostLock",(function(){return Pn})),n.d(o,"canUserUseUnfilteredHTML",(function(){return wn})),n.d(o,"isPublishSidebarEnabled",(function(){return Cn})),n.d(o,"getEditorBlocks",(function(){return Tn})),n.d(o,"getEditorSelectionStart",(function(){return Bn})),n.d(o,"getEditorSelectionEnd",(function(){return xn})),n.d(o,"__unstableIsEditorReady",(function(){return In})),n.d(o,"getEditorSettings",(function(){return An})),n.d(o,"getBlockName",(function(){return Dn})),n.d(o,"isBlockValid",(function(){return Ln})),n.d(o,"getBlockAttributes",(function(){return Nn})),n.d(o,"getBlock",(function(){return Un})),n.d(o,"getBlocks",(function(){return Fn})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return Mn})),n.d(o,"getClientIdsOfDescendants",(function(){return Vn})),n.d(o,"getClientIdsWithDescendants",(function(){return zn})),n.d(o,"getGlobalBlockCount",(function(){return Hn})),n.d(o,"getBlocksByClientId",(function(){return Wn})),n.d(o,"getBlockCount",(function(){return Kn})),n.d(o,"getBlockSelectionStart",(function(){return Gn})),n.d(o,"getBlockSelectionEnd",(function(){return qn})),n.d(o,"getSelectedBlockCount",(function(){return Qn})),n.d(o,"hasSelectedBlock",(function(){return Yn})),n.d(o,"getSelectedBlockClientId",(function(){return Xn})),n.d(o,"getSelectedBlock",(function(){return Zn})),n.d(o,"getBlockRootClientId",(function(){return Jn})),n.d(o,"getBlockHierarchyRootClientId",(function(){return $n})),n.d(o,"getAdjacentBlockClientId",(function(){return er})),n.d(o,"getPreviousBlockClientId",(function(){return tr})),n.d(o,"getNextBlockClientId",(function(){return nr})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return rr})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return or})),n.d(o,"getMultiSelectedBlocks",(function(){return ir})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return cr})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return ar})),n.d(o,"isFirstMultiSelectedBlock",(function(){return sr})),n.d(o,"isBlockMultiSelected",(function(){return ur})),n.d(o,"isAncestorMultiSelected",(function(){return lr})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return dr})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return pr})),n.d(o,"getBlockOrder",(function(){return br})),n.d(o,"getBlockIndex",(function(){return fr})),n.d(o,"isBlockSelected",(function(){return hr})),n.d(o,"hasSelectedInnerBlock",(function(){return mr})),n.d(o,"isBlockWithinSelection",(function(){return Or})),n.d(o,"hasMultiSelection",(function(){return vr})),n.d(o,"isMultiSelecting",(function(){return gr})),n.d(o,"isSelectionEnabled",(function(){return jr})),n.d(o,"getBlockMode",(function(){return yr})),n.d(o,"isTyping",(function(){return _r})),n.d(o,"isCaretWithinFormattedText",(function(){return kr})),n.d(o,"getBlockInsertionPoint",(function(){return Er})),n.d(o,"isBlockInsertionPointVisible",(function(){return Sr})),n.d(o,"isValidTemplate",(function(){return Pr})),n.d(o,"getTemplate",(function(){return wr})),n.d(o,"getTemplateLock",(function(){return Cr})),n.d(o,"canInsertBlockType",(function(){return Tr})),n.d(o,"getInserterItems",(function(){return Br})),n.d(o,"hasInserterItems",(function(){return xr})),n.d(o,"getBlockListSettings",(function(){return Ir}));var i=n(6),c=n(10),a=n(75),s=n(48),u=(n(182),n(24)),l=n(56),d=n(5),p=n(4),b=n(44),f=n(34),h=n(115),m=n.n(h),O=n(2);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var g={insertUsage:{},isPublishSidebarEnabled:!0},j=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_REUSABLE_BLOCKS":return _({},e,{},Object(O.keyBy)(t.results,"id"));case"UPDATE_REUSABLE_BLOCK":var n=t.id,r=t.changes;return _({},e,Object(d.a)({},n,_({},e[n],{},r)));case"SAVE_REUSABLE_BLOCK_SUCCESS":var o=t.id,i=t.updatedId;if(o===i)return e;var c=e[o];return _({},Object(O.omit)(e,o),Object(d.a)({},i,_({},c,{id:i})));case"REMOVE_REUSABLE_BLOCK":var a=t.id;return Object(O.omit)(e,a)}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_REUSABLE_BLOCKS":var n=t.id;return n?_({},e,Object(d.a)({},n,!0)):e;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=t.id;return Object(O.omit)(e,r)}return e},isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_REUSABLE_BLOCK":return _({},e,Object(d.a)({},t.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=t.id;return Object(O.omit)(e,n)}return e}});var S=m()(Object(p.combineReducers)({postId: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"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.id}return e},postType: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"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENABLE_PUBLISH_SIDEBAR":return _({},e,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return _({},e,{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},reusableBlocks:E,template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return _({},e,{isValid:t.isValid})}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return _({},e,Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(O.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return!0;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return _({},e,{},t.settings)}return e},postAutosavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_AUTOSAVING":return _({},e,Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(O.omit)(e,t.lockName)}return e}})),P=n(89),w=n.n(P),C=n(23),T=n.n(C),B=n(49),x=n(42),I=n.n(x),A=n(1),R=n(18),D=n(37),L=n.n(D),N=new Set(["meta"]),U="core/editor",F=/%(?:postname|pagename)%/,M=["title","excerpt","content"];function V(e){var t=e.previousPost,n=e.post,r=e.postType;if(Object(O.get)(e.options,["isAutosave"]))return[];var o,i=["publish","private","future"],c=Object(O.includes)(i,t.status),a=Object(O.includes)(i,n.status),s=Object(O.get)(r,["viewable"],!1);if(c||a?c&&!a?(o=r.labels.item_reverted_to_draft,s=!1):o=!c&&a?{publish:r.labels.item_published,private:r.labels.item_published_privately,future:r.labels.item_scheduled}[n.status]:r.labels.item_updated:o=null,o){var u=[];return s&&u.push({label:r.labels.view_item,url:n.link}),[o,{id:"SAVE_POST_NOTICE_ID",type:"snackbar",actions:u}]}return[]}function z(e){var t=e.post,n=e.edits,r=e.error;if(r&&"rest_autosave_no_changes"===r.code)return[];var o=["publish","private","future"],i=-1!==o.indexOf(t.status),c={publish:Object(A.__)("Publishing failed."),private:Object(A.__)("Publishing failed."),future:Object(A.__)("Scheduling failed.")},a=i||-1===o.indexOf(n.status)?Object(A.__)("Updating failed."):c[n.status];return r.message&&!/<\/?[^>]*>/.test(r.message)&&(a=[a,r.message].join(" ")),[a,{id:"SAVE_POST_NOTICE_ID"}]}var H=n(46),W=n.n(H),K=n(85),G=W()((function(e){1===e.length&&Object(c.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(c.serialize)(e);return 1===e.length&&e[0].name===Object(c.getFreeformContentHandlerName)()&&(t=Object(K.removep)(t)),t}),{maxSize:1});function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",options:e}}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_FINISH",options:e}}function pe(e){return{type:"UPDATE_POST",edits:e}}function be(e){return{type:"SETUP_EDITOR_STATE",post:e}}function fe(e,t){var n,r,o;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(b.select)(U,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(b.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),Z)}function he(e){return Q({},pe(e),{optimist:{id:"post-update"}})}function me(){var e,t,n,r,o,i,c,a=arguments;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},s.next=3,Object(b.select)(U,"isEditedPostSaveable");case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:return s.next=7,Object(b.select)(U,"getEditedPostContent");case 7:if(s.t0=s.sent,t={content:s.t0},e.isAutosave){s.next=12;break}return s.next=12,Object(b.dispatch)(U,"editPost",t,{undoIgnore:!0});case 12:return s.next=14,le(e);case 14:return s.next=16,Object(b.select)(U,"getCurrentPost");case 16:return n=s.sent,s.t1=Q,s.t2={id:n.id},s.next=21,Object(b.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 21:return s.t3=s.sent,s.t4={},s.t5=t,t=(0,s.t1)(s.t2,s.t3,s.t4,s.t5),s.next=27,Object(b.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 27:return s.next=29,de(e);case 29:return s.next=31,Object(b.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 31:if(!(r=s.sent)){s.next=39;break}if(!(o=z({post:n,edits:t,error:r})).length){s.next=37;break}return s.next=37,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(R.a)(o)));case 37:s.next=57;break;case 39:return s.next=41,Object(b.select)(U,"getCurrentPost");case 41:return i=s.sent,s.t6=V,s.t7=n,s.t8=i,s.next=47,Object(b.select)("core","getPostType",i.type);case 47:if(s.t9=s.sent,s.t10=e,s.t11={previousPost:s.t7,post:s.t8,postType:s.t9,options:s.t10},!(c=(0,s.t6)(s.t11)).length){s.next=54;break}return s.next=54,b.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(R.a)(c)));case 54:if(e.isAutosave){s.next=57;break}return s.next=57,Object(b.dispatch)("core/block-editor","__unstableMarkLastChangeAsPersistent");case 57:case"end":return s.stop()}}),J)}function Oe(){var e,t,n,r;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(b.select)(U,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(b.select)(U,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(b.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(b.apiFetch)({path:"/wp/v2/".concat(n.rest_base,"/").concat(e.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,Object(b.dispatch)(U,"resetPost",r);case 14:case"end":return o.stop()}}),$)}function ve(){var e,t,n;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(b.select)(U,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(b.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(b.dispatch)("core/notices","removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,Object(b.select)(U,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(b.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(b.dispatch)(U,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(R.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(A.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),ee,null,[[8,18]])}function ge(e){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(b.dispatch)(U,"savePost",Q({isAutosave:!0},e));case 2:case"end":return t.stop()}}),te)}function je(){var e,t,n,r;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(b.select)(U,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(b.select)(U,"getEditedPostAttribute","title");case 5:return t=o.sent,o.next=8,Object(b.select)(U,"getEditedPostAttribute","content");case 8:return n=o.sent,o.next=11,Object(b.select)(U,"getEditedPostAttribute","excerpt");case 11:return r=o.sent,o.next=14,{type:"LOCAL_AUTOSAVE_SET",postId:e.id,title:t,content:n,excerpt:r};case 14:case"end":return o.stop()}}),ne)}function ye(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","redo");case 2:case"end":return e.stop()}}),re)}function _e(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","undo");case 2:case"end":return e.stop()}}),oe)}function ke(){return{type:"CREATE_UNDO_LEVEL"}}function Ee(e){return{type:"UPDATE_POST_LOCK",lock:e}}function Se(e){return{type:"FETCH_REUSABLE_BLOCKS",id:e}}function Pe(e){return{type:"RECEIVE_REUSABLE_BLOCKS",results:e}}function we(e){return{type:"SAVE_REUSABLE_BLOCK",id:e}}function Ce(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}function Te(e,t){return{type:"UPDATE_REUSABLE_BLOCK",id:e,changes:t}}function Be(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function xe(e){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(O.castArray)(e)}}function Ie(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Ae(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Re(e){return{type:"LOCK_POST_SAVING",lockName:e}}function De(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function Le(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function Ne(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}function Ue(e){var t,n,r,o,i,c,a,s,u=arguments;return T.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=u.length>1&&void 0!==u[1]?u[1]:{},n=t.__unstableShouldCreateUndoLevel,r=t.selectionStart,o=t.selectionEnd,i={blocks:e,selectionStart:r,selectionEnd:o},!1===n){l.next=19;break}return l.next=6,Object(b.select)(U,"getCurrentPost");case 6:return c=l.sent,a=c.id,s=c.type,l.next=11,Object(b.select)("core","getEditedEntityRecord","postType",s,a);case 11:if(l.t0=l.sent.blocks,l.t1=i.blocks,!(l.t0===l.t1)){l.next=18;break}return l.next=17,Object(b.dispatch)("core","__unstableCreateUndoLevel","postType",s,a);case 17:return l.abrupt("return",l.sent);case 18:i.content=function(e){var t=e.blocks;return G(void 0===t?[]:t)};case 19:return l.delegateYield(fe(i),"t2",20);case 20:case"end":return l.stop()}}),ie)}function Fe(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var Me=function(e){return T.a.mark((function t(){var n,r,o,i=arguments;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(L()("`wp.data.dispatch( 'core/editor' )."+e+"`",{alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`"}),n=i.length,r=new Array(n),o=0;o1||1===r.length&&!n.postType)return!0;if(!n.postType)return!1;var o=At(t),i=o.type,c=o.id,a=Object.keys(n.postType);if(a.length>1||1===a.length&&!n.postType[i])return!0;var s=Object.keys(n.postType[i]);return s.length>1||1===s.length&&!n.postType[i][c]}}));function It(e){return!Bt(e)&&Ct(e)}var At=Object(p.createRegistrySelector)((function(e){return function(t){var n=Dt(t),r=Rt(t),o=e("core").getRawEntityRecord("postType",r,n);return o||Et}}));function Rt(e){return e.postType}function Dt(e){return e.postId}function Lt(e){return Object(O.get)(At(e),["_links","version-history",0,"count"],0)}function Nt(e){return Object(O.get)(At(e),["_links","predecessor-version",0,"id"],null)}var Ut=Object(p.createRegistrySelector)((function(e){return function(t){var n=Rt(t),r=Dt(t);return e("core").getEntityRecordEdits("postType",n,r)||Et}})),Ft=Object(p.createRegistrySelector)((function(e){return function(){return L()("`wp.data.select( 'core/editor' ).getReferenceByDistinctEdits`",{alternative:"`wp.data.select( 'core' ).getReferenceByDistinctEdits`"}),e("core").getReferenceByDistinctEdits()}}));function Mt(e,t){switch(t){case"type":return Rt(e);case"id":return Dt(e);default:var n=At(e);if(!n.hasOwnProperty(t))break;return k(n[t])}}function Vt(e,t){switch(t){case"content":return ln(e)}var n=Ut(e);return n.hasOwnProperty(t)?N.has(t)?function(e,t){var n=Ut(e);return n.hasOwnProperty(t)?kt({},Mt(e,t),{},n[t]):Mt(e,t)}(e,t):n[t]:Mt(e,t)}var zt=Object(p.createRegistrySelector)((function(e){return function(t,n){if(Object(O.includes)(M,n)||"preview_link"===n){var r=Rt(t),o=Dt(t),i=Object(O.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(r,o,i);return c?k(c[n]):void 0}}}));function Ht(e){return"private"===Vt(e,"status")?"private":Vt(e,"password")?"password":"public"}function Wt(e){return"pending"===At(e).status}function Kt(e,t){var n=t||At(e);return-1!==["publish","private"].indexOf(n.status)||"future"===n.status&&!Object(jt.isInTheFuture)(new Date(Number(Object(jt.getDate)(n.date))-6e4))}function Gt(e){return"future"===At(e).status&&!Kt(e)}function qt(e){var t=At(e);return Bt(e)||-1===["publish","private","future"].indexOf(t.status)}function Qt(e){return!tn(e)&&(!!Vt(e,"title")||!!Vt(e,"excerpt")||!Yt(e))}function Yt(e){var t=Tn(e);if(t.length){if(t.length>1)return!1;var n=t[0].name;if(n!==Object(c.getDefaultBlockName)()&&n!==Object(c.getFreeformContentHandlerName)())return!1}return!ln(e)}var Xt=Object(p.createRegistrySelector)((function(e){return function(t){if(!Qt(t))return!1;if(kn(t))return!1;var n=Rt(t),r=Dt(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(O.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!Tt(t)||["title","excerpt"].some((function(e){return k(c[e])!==Vt(t,e)}))))}})),Zt=Object(p.createRegistrySelector)((function(e){return function(t){L()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Rt(t),r=Dt(t),o=Object(O.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(O.mapValues)(Object(O.pick)(i,M),k)}})),Jt=Object(p.createRegistrySelector)((function(e){return function(t){L()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Rt(t),r=Dt(t),o=Object(O.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function $t(e){var t=Vt(e,"date"),n=new Date(Number(Object(jt.getDate)(t))-6e4);return Object(jt.isInTheFuture)(n)}function en(e){var t=Vt(e,"date"),n=Vt(e,"modified"),r=Vt(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&t===n}var tn=Object(p.createRegistrySelector)((function(e){return function(t){var n=Rt(t),r=Dt(t);return e("core").isSavingEntityRecord("postType",n,r)}})),nn=Object(p.createRegistrySelector)((function(e){return function(t){var n=Rt(t),r=Dt(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),rn=Object(p.createRegistrySelector)((function(e){return function(t){var n=Rt(t),r=Dt(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function on(e){return!!tn(e)&&!!Object(O.get)(e.saving,["options","isAutosave"])}function cn(e){return!!tn(e)&&!!e.saving.options.isPreview}function an(e){if(!e.saving.pending&&!tn(e)){var t=zt(e,"preview_link");t||(t=Vt(e,"link"))&&(t=Object(yt.addQueryArgs)(t,{preview:!0}));var n=Vt(e,"featured_media");return t&&n?Object(yt.addQueryArgs)(t,{_thumbnail_id:n}):t}}function sn(e){var t,n=Tn(e);switch(1===n.length&&(t=n[0].name),2===n.length&&"core/paragraph"===n[1].name&&(t=n[0].name),t){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":case"core-embed/youtube":case"core-embed/vimeo":return"video";case"core/audio":case"core-embed/spotify":case"core-embed/soundcloud":return"audio"}return null}function un(e){L()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(c.isUnmodifiedDefaultBlock)(t[0])?[]:t}var ln=Object(p.createRegistrySelector)((function(e){return function(t){var n=Dt(t),r=Rt(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return G(o.blocks);if(o.content)return o.content}return""}})),dn=Object(gt.a)((function(e,t){var n=e.reusableBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return kt({},n,{id:r?t:+t,isTemporary:r})}),(function(e,t){return[e.reusableBlocks.data[t]]}));function pn(e,t){return e.reusableBlocks.isSaving[t]||!1}function bn(e,t){return!!e.reusableBlocks.isFetching[t]}var fn=Object(gt.a)((function(e){return Object(O.map)(e.reusableBlocks.data,(function(t,n){return dn(e,n)}))}),(function(e){return[e.reusableBlocks.data]}));function hn(e,t){var n=Object(O.find)(e.optimist,(function(e){return e.beforeState&&Object(O.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function mn(e){if(!tn(e))return!1;if(!Kt(e))return!1;var t=hn(e,"post-update");return!!t&&!Kt(null,t.currentPost)}function On(e){var t=Vt(e,"permalink_template");return F.test(t)}function vn(e){var t=gn(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return On(e)?n+r+o:n}function gn(e){var t=Vt(e,"permalink_template");if(!t)return null;var n=Vt(e,"slug")||Vt(e,"generated_slug"),r=t.split(F),o=Object(vt.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function jn(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function yn(e){return e.postLock.isLocked}function _n(e){return Object.keys(e.postSavingLock).length>0}function kn(e){return Object.keys(e.postAutosavingLock).length>0}function En(e){return e.postLock.isTakeover}function Sn(e){return e.postLock.user}function Pn(e){return e.postLock.activePostLock}function wn(e){return Object(O.has)(At(e),["_links","wp:action-unfiltered-html"])}function Cn(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:g.isPublishSidebarEnabled}function Tn(e){return Vt(e,"blocks")||St}function Bn(e){return Vt(e,"selectionStart")}function xn(e){return Vt(e,"selectionEnd")}function In(e){return e.isReady}function An(e){return e.editorSettings}function Rn(e){return Object(p.createRegistrySelector)((function(t){return function(n){var r;L()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?to:t,r=e.getInserterItems,o=void 0===r?no:r,a=e.getSelectedBlockName,s=void 0===a?ro:a;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){oo();var e=s();return o(n()).filter((function(t){return e!==t.name}))},getOptionKeywords:function(e){var t=e.title,n=e.keywords,r=void 0===n?[]:n;return[e.category].concat(Object(R.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(Yr.createElement)(i.BlockIcon,{key:"icon",icon:t,showColors:!0}),n]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(c.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),co={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),I()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[e.avatar_urls&&e.avatar_urls[24]?Object(Yr.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}):Object(Yr.createElement)("span",{className:"editor-autocompleters__no-avatar"}),Object(Yr.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(Yr.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}},ao=n(14),so=n(13),uo=n(15),lo=n(16),po=n(17),bo=function(e){function t(){return Object(ao.a)(this,t),Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDirty,r=t.editsReference,o=t.isAutosaveable,i=t.isAutosaving;r!==e.editsReference&&(this.didAutosaveForEditsReference=!1),!i&&e.isAutosaving&&(this.didAutosaveForEditsReference=!0),e.isDirty===n&&e.isAutosaveable===o&&e.editsReference===r||this.toggleTimer(n&&o&&!this.didAutosaveForEditsReference)}},{key:"componentWillUnmount",value:function(){this.toggleTimer(!1)}},{key:"toggleTimer",value:function(e){var t=this,n=this.props,r=n.interval,o=n.shouldThrottle,i=void 0!==o&&o;!i&&this.pendingSave&&(clearTimeout(this.pendingSave),delete this.pendingSave),!e||i&&this.pendingSave||(this.pendingSave=setTimeout((function(){t.props.autosave(),delete t.pendingSave}),1e3*r))}},{key:"render",value:function(){return null}}]),t}(Yr.Component),fo=Object(Xr.compose)([Object(p.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,a=r.getEditorSettings,s=t.interval,u=void 0===s?a().autosaveInterval:s;return{isDirty:o(),isAutosaveable:i(),editsReference:n(),isAutosaving:c(),interval:u}})),Object(p.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(bo),ho=n(11),mo=n.n(ho),Oo=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.path,c=void 0===o?[]:o,a=e.href,s=e.onSelect;return Object(Yr.createElement)("li",{className:mo()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(Yr.createElement)("a",{href:a,className:"document-outline__button",onClick:s},Object(Yr.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),c.map((function(e,t){var n=e.clientId;return Object(Yr.createElement)("strong",{key:t,className:"document-outline__level"},Object(Yr.createElement)(i.BlockTitle,{clientId:n}))})),Object(Yr.createElement)("strong",{className:"document-outline__level"},r),Object(Yr.createElement)("span",{className:"document-outline__item-content"},t)))};function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(O.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?go({},t,{path:n,level:t.attributes.level,isEmpty:Eo(t)}):e(t.innerBlocks,[].concat(Object(R.a)(n),[t]))}))}(n);if(a.length<1)return null;var s=1,l=document.querySelector(".editor-post-title__input"),d=i&&r&&l,p=Object(O.countBy)(a,"level")[1]>1;return Object(Yr.createElement)("div",{className:"document-outline"},Object(Yr.createElement)("ul",null,d&&Object(Yr.createElement)(Oo,{level:Object(A.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(l.id),isDisabled:c},r),a.map((function(e,t){var n=e.level>s+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(p||d));return s=e.level,Object(Yr.createElement)(Oo,{key:t,level:"H".concat(e.level),isValid:r,path:e.path,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?jo:Object(u.getTextContent)(Object(u.create)({html:e.attributes.content})),n&&yo,1===e.level&&p&&ko,d&&1===e.level&&!p&&_o)}))))}));var Po=Object(p.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(O.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n}));var wo=function(){var e=Object(p.useDispatch)("core/editor").savePost,t=Object(p.useSelect)((function(e){return e("core/editor").isEditedPostDirty}),[]);return Object(s.useShortcut)("core/editor/save",(function(n){n.preventDefault(),t()&&e()}),{bindGlobal:!0}),null};function Co(){var e=Object(p.useDispatch)("core/editor"),t=e.redo,n=e.undo,r=e.savePost,o=Object(p.useSelect)((function(e){return e("core/editor").isEditedPostDirty}),[]);return Object(s.useShortcut)("core/editor/undo",(function(e){n(),e.preventDefault()}),{bindGlobal:!0}),Object(s.useShortcut)("core/editor/redo",(function(e){t(),e.preventDefault()}),{bindGlobal:!0}),Object(s.useShortcut)("core/editor/save",(function(e){e.preventDefault(),o()&&r()}),{bindGlobal:!0}),Object(Yr.createElement)(Yr.Fragment,null,Object(Yr.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(Yr.createElement)(wo,null))}var To=Co;function Bo(){return L()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(Yr.createElement)(Co,null)}function xo(){return Object(Yr.createElement)(wo,null)}var Io=function(){var e=Object(p.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(Yr.useEffect)((function(){e({name:"core/editor/save",category:"global",description:Object(A.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:Object(A.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:Object(A.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}})}),[e]),Object(Yr.createElement)(i.BlockEditorKeyboardShortcuts.Register,null)},Ao=n(3),Ro=n(22),Do=n(9),Lo=Object(Yr.createElement)(Do.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Yr.createElement)(Do.Path,{d:"M8 5h5V2l6 4-6 4V7H8c-2.2 0-4 1.8-4 4s1.8 4 4 4h5v2H8c-3.3 0-6-2.7-6-6s2.7-6 6-6z"}));var No=Object(Xr.compose)([Object(p.withSelect)((function(e){return{hasRedo:e("core/editor").hasEditorRedo()}})),Object(p.withDispatch)((function(e){return{redo:e("core/editor").redo}}))])((function(e){var t=e.hasRedo,n=e.redo;return Object(Yr.createElement)(Ao.Button,{icon:Lo,label:Object(A.__)("Redo"),shortcut:Ro.displayShortcut.primaryShift("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__redo"})})),Uo=Object(Yr.createElement)(Do.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Yr.createElement)(Do.Path,{d:"M12 5H7V2L1 6l6 4V7h5c2.2 0 4 1.8 4 4s-1.8 4-4 4H7v2h5c3.3 0 6-2.7 6-6s-2.7-6-6-6z"}));var Fo=Object(Xr.compose)([Object(p.withSelect)((function(e){return{hasUndo:e("core/editor").hasEditorUndo()}})),Object(p.withDispatch)((function(e){return{undo:e("core/editor").undo}}))])((function(e){var t=e.hasUndo,n=e.undo;return Object(Yr.createElement)(Ao.Button,{icon:Uo,label:Object(A.__)("Undo"),shortcut:Ro.displayShortcut.primary("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__undo"})}));var Mo=Object(Xr.compose)([Object(p.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(p.withDispatch)((function(e){var t=e("core/block-editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object(Qr.a)(e,["isValid"]);return t?null:Object(Yr.createElement)(Ao.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:Object(A.__)("Keep it as is"),onClick:n.resetTemplateValidity},{label:Object(A.__)("Reset the template"),onClick:function(){window.confirm(Object(A.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0}]},Object(A.__)("The content of your post doesn’t match the template assigned to your post type."))}));var Vo=Object(Xr.compose)([Object(p.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(p.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(O.filter)(t,{isDismissible:!0,type:"default"}),o=Object(O.filter)(t,{isDismissible:!1,type:"default"}),i=Object(O.filter)(t,{type:"snackbar"});return Object(Yr.createElement)(Yr.Fragment,null,Object(Yr.createElement)(Ao.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(Yr.createElement)(Ao.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(Yr.createElement)(Mo,null)),Object(Yr.createElement)(Ao.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),zo=n(64),Ho=n.n(zo),Wo=function(e){var t=e.id,n=e.name,r=e.changes.rawRecord,o=e.checked,i=e.setCheckedById;return Object(Yr.createElement)(Ao.CheckboxControl,{label:"".concat(n,': "').concat(r.name||r.slug||r.title||Object(A.__)("Untitled"),'"'),checked:o,onChange:function(e){return i(t,e)}})};function Ko(e){var t=e.isOpen,n=e.onRequestClose,r=e.ignoredForSave,o=void 0===r?new Ho.a:r,i=Object(p.useSelect)((function(e){return e("core").getEntityRecordChangesByRecord()})),c=Object(p.useDispatch)("core").saveEditedEntityRecord,a=Object(Yr.useState)((function(){return new Ho.a})),s=Object(vt.a)(a,2),u=s[0],l=s[1],d=function(e,t){return l((function(n){var r=new Ho.a(n);return t?r.set(e,!0):r.delete(e),r}))};return t&&Object(Yr.createElement)(Ao.Modal,{title:Object(A.__)("What do you want to save?"),onRequestClose:function(){return n()},contentLabel:Object(A.__)("Select items to save.")},Object.keys(i).map((function(e){return Object.keys(i[e]).map((function(t){return Object.keys(i[e][t]).map((function(n){var r=[e,t,n];return Object(Yr.createElement)(Wo,{key:r.join(" | "),id:r,name:t,changes:i[e][t][n],checked:u.get(r),setCheckedById:d})}))}))})),Object(Yr.createElement)(Ao.Button,{isPrimary:!0,disabled:0===u.size,onClick:function(){u.forEach((function(e,t){o.has(t)||c.apply(void 0,Object(R.a)(t.filter((function(e,n){return n!==t.length-1||"undefined"!==e}))))})),n(u)},className:"editor-entities-saved-states__save-button"},Object(A.__)("Save")))}var Go=n(7),qo=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).reboot=e.reboot.bind(Object(Go.a)(e)),e.getContent=e.getContent.bind(Object(Go.a)(e)),e.state={error:null},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(p.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(Yr.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(Yr.createElement)(Ao.Button,{key:"recovery",onClick:this.reboot,isSecondary:!0},Object(A.__)("Attempt Recovery")),Object(Yr.createElement)(Ao.ClipboardButton,{key:"copy-post",text:this.getContent,isSecondary:!0},Object(A.__)("Copy Post Text")),Object(Yr.createElement)(Ao.ClipboardButton,{key:"copy-error",text:e.stack,isSecondary:!0},Object(A.__)("Copy Error"))]},Object(A.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(Yr.Component),Qo=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,Yo=Object(O.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function Xo(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),getEditedPostAttribute:e("core/editor").getEditedPostAttribute,hasRemoteAutosave:!!e("core/editor").getEditorSettings().autosave}}),[]),t=e.postId,n=e.getEditedPostAttribute,r=e.hasRemoteAutosave,o=Object(p.useDispatch)("core/notices"),i=o.createWarningNotice,a=o.removeNotice,s=Object(p.useDispatch)("core/editor"),u=s.editPost,l=s.resetEditorBlocks;Object(Yr.useEffect)((function(){var e=function(e){return window.sessionStorage.getItem(Mr(e))}(t);if(e){try{e=JSON.parse(e)}catch(e){return}var o=e,s={title:o.post_title,content:o.content,excerpt:o.excerpt};if(Object.keys(s).some((function(e){return s[e]!==n(e)}))){if(!r){var d=Object(O.uniqueId)("wpEditorAutosaveRestore");i(Object(A.__)("The backup of this post in your browser is different from the version below."),{id:d,actions:[{label:Object(A.__)("Restore the backup"),onClick:function(){u(Object(O.omit)(s,["content"])),l(Object(c.parse)(s.content)),a(d)}}]})}}else Vr(t)}}),[t])}var Zo=Object(Xr.ifCondition)(Yo)((function(){var e,t,n,r,o,i,c,a=Object(p.useDispatch)("core/editor").__experimentalLocalAutosave,s=Object(Yr.useCallback)((function(){Qo(a)}),[]);Xo(),e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}}),[]),t=e.postId,n=e.isDirty,r=e.isAutosaving,o=e.didError,i=Object(Yr.useRef)(n),c=Object(Yr.useRef)(r),Object(Yr.useEffect)((function(){!o&&(c.current&&!r||i.current&&!n)&&Vr(t),i.current=n,c.current=r}),[n,r,o]);var u=Object(p.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}}),[]).localAutosaveInterval;return Object(Yr.createElement)(fo,{interval:u,autosave:s,shouldThrottle:!0})}));var Jo=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(O.get)(n,["supports","page-attributes"],!1)&&Object(O.isEmpty)(t)?null:r}));var $o=Object(p.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(O.some)(Object(O.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),ei=Object(Xr.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(Yr.createElement)(Ao.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(A.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(O.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var ti=Object(Xr.compose)([Object(p.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(p.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(Yr.createElement)($o,{supportKeys:"page-attributes"},Object(Yr.createElement)(ei,e))}));function ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ri(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";r({status:e,password:t})}}})),Xr.withInstanceId])(Wi);var Gi=Object(p.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(O.find)(Hi,{value:t}).label}));var qi=Object(Xr.compose)([Object(p.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(p.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(jt.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(Yr.createElement)(Ao.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,is12Hour:o})}));var Qi=Object(p.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(jt.__experimentalGetSettings)();return t&&!n?Object(jt.dateI18n)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(A.__)("Immediately")}));function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Xi({},Zi,{},t),o=I()({path:Object(yt.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(ec).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(O.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(O.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(O.escape)(e);return I()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=I()({path:Object(yt.addQueryArgs)("/wp/v2/".concat(n.rest_base),Xi({},Zi,{search:r}))}).then(ec),t.addRequest.then((function(t){return Object(O.find)(t,(function(t){return Ji(t.name,e)}))}))):Promise.reject(o)})).then($i)}},{key:"onChange",value:function(e){var t=this,n=Object(O.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(O.find)(t.state.availableTerms,(function(t){return Ji(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(O.find)(t,(function(t){return Ji(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(O.invoke)(this.searchRequest,["abort"]),this.searchRequest=this.fetchTerms({search:e})}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,a=i.map((function(e){return e.name})),s=Object(O.get)(n,["labels","add_new_item"],"post_tag"===t?Object(A.__)("Add new tag"):Object(A.__)("Add new Term")),u=Object(O.get)(n,["labels","singular_name"],"post_tag"===t?Object(A.__)("Tag"):Object(A.__)("Term")),l=Object(A.sprintf)(Object(A._x)("%s added","term"),u),d=Object(A.sprintf)(Object(A._x)("%s removed","term"),u),p=Object(A.sprintf)(Object(A._x)("Remove %s","term"),u);return Object(Yr.createElement)(Ao.FormTokenField,{value:c,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:l,removed:d,remove:p}})}}]),t}(Yr.Component),nc=Object(Xr.compose)(Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(O.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(O.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),Object(Ao.withFilters)("editor.PostTaxonomyType"))(tc),rc=function(){var e=[Object(A.__)("Suggestion:"),Object(Yr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(A.__)("Add tags"))];return Object(Yr.createElement)(Ao.PanelBody,{initialOpen:!1,title:e},Object(Yr.createElement)("p",null,Object(A.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(Yr.createElement)(nc,{slug:"post_tag"}))},oc=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).call(this,e))).state={hadTagsWhenOpeningThePanel:e.hasTags},n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(Yr.createElement)(rc,null)}}]),t}(Yr.Component),ic=Object(Xr.compose)(Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(O.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(Xr.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(oc),cc=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(Yr.createElement)(Ao.Button,{isLink:!0,onClick:function(){return r(t)}},n)},ac=function(e,t){var n=Pi.filter((function(t){return Object(O.includes)(e,t.id)}));return Object(O.find)(n,(function(e){return e.id===t}))},sc=Object(Xr.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(O.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:ac(o,r())}})),Object(p.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Object(Xr.ifCondition)((function(e){var t=e.suggestion,n=e.currentPostFormat;return t&&t.id!==n})))((function(e){var t=e.suggestion,n=e.onUpdatePostFormat,r=[Object(A.__)("Suggestion:"),Object(Yr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(A.__)("Use a post format"))];return Object(Yr.createElement)(Ao.PanelBody,{initialOpen:!1,title:r},Object(Yr.createElement)("p",null,Object(A.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(Yr.createElement)("p",null,Object(Yr.createElement)(cc,{onUpdatePostFormat:n,suggestedPostFormat:t.id,suggestionText:Object(A.sprintf)(Object(A.__)('Apply the "%1$s" format.'),t.caption)})))}));var uc=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(A.__)("Are you ready to schedule?"),n=Object(A.__)("Your work will be published at the specified date and time.")):(t=Object(A.__)("Are you ready to publish?"),n=Object(A.__)("Double-check your settings before publishing.")):(t=Object(A.__)("Are you ready to submit for review?"),n=Object(A.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(Yr.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(Yr.createElement)("div",null,Object(Yr.createElement)("strong",null,t)),Object(Yr.createElement)("p",null,n),r&&Object(Yr.createElement)(Yr.Fragment,null,Object(Yr.createElement)(Ao.PanelBody,{initialOpen:!1,title:[Object(A.__)("Visibility:"),Object(Yr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Yr.createElement)(Gi,null))]},Object(Yr.createElement)(Ki,null)),Object(Yr.createElement)(Ao.PanelBody,{initialOpen:!1,title:[Object(A.__)("Publish:"),Object(Yr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Yr.createElement)(Qi,null))]},Object(Yr.createElement)(qi,null))),Object(Yr.createElement)(sc,null),Object(Yr.createElement)(ic,null),i)})),lc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(Go.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(Go.a)(e)),e.postLink=Object(Yr.createRef)(),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(O.get)(o,["labels","singular_name"]),c=Object(O.get)(o,["labels","view_item"]),a=n?Object(Yr.createElement)(Yr.Fragment,null,Object(A.__)("is now scheduled. It will go live on")," ",Object(Yr.createElement)(Qi,null),"."):Object(A.__)("is now live.");return Object(Yr.createElement)("div",{className:"post-publish-panel__postpublish"},Object(Yr.createElement)(Ao.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(Yr.createElement)("a",{ref:this.postLink,href:r.link},Object(ui.decodeEntities)(r.title)||Object(A.__)("(no title)"))," ",a),Object(Yr.createElement)(Ao.PanelBody,null,Object(Yr.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(Yr.createElement)("strong",null,Object(A.__)("What’s next?"))),Object(Yr.createElement)(Ao.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(A.sprintf)(Object(A.__)("%s address"),i),value:Object(yt.safeDecodeURIComponent)(r.link),onFocus:this.onSelectInput}),Object(Yr.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(Yr.createElement)(Ao.Button,{isSecondary:!0,href:r.link},c),Object(Yr.createElement)(Ao.ClipboardButton,{isSecondary:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(A.__)("Copied!"):Object(A.__)("Copy Link")))),t)}}]),t}(Yr.Component),dc=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(lc),pc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onSubmit=e.onSubmit.bind(Object(Go.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,a=e.isSaving,s=e.onClose,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object(Qr.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(O.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!a,m=f&&!a;return Object(Yr.createElement)("div",Object(qr.a)({className:"editor-post-publish-panel"},b),Object(Yr.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(Yr.createElement)("div",{className:"editor-post-publish-panel__header-published"},c?Object(A.__)("Scheduled"):Object(A.__)("Published")):Object(Yr.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(Yr.createElement)(Vi,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n})),Object(Yr.createElement)(Ao.Button,{"aria-expanded":!0,onClick:s,icon:zi.a,label:Object(A.__)("Close panel")})),Object(Yr.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(Yr.createElement)(uc,null,d&&Object(Yr.createElement)(d,null)),m&&Object(Yr.createElement)(dc,{focusOnMount:!0},l&&Object(Yr.createElement)(l,null)),a&&Object(Yr.createElement)(Ao.Spinner,null)),Object(Yr.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(Yr.createElement)(Ao.CheckboxControl,{label:Object(A.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),t}(Yr.Component),bc=Object(Xr.compose)([Object(p.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,s=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(O.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(O.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(p.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),Ao.withFocusReturn,Ao.withConstrainedTabbing])(pc),fc=n(191),hc=n(193);var mc=Object(Xr.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=Object(Xr.useViewportMatch)("small","<");return n||r?Object(Yr.createElement)(Ao.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(A.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(A.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(A.__)("Draft"):Object(A.__)("Switch to draft")):null})),Oc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={forceSavedMessage:!1},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this;e.isSaving&&!this.props.isSaving&&(this.setState({forceSavedMessage:!0}),this.props.setTimeout((function(){t.setState({forceSavedMessage:!1})}),1e3))}},{key:"render",value:function(){var e=this.props,t=e.post,n=e.isNew,r=e.isScheduled,o=e.isPublished,i=e.isDirty,c=e.isSaving,a=e.isSaveable,s=e.onSave,u=e.isAutosaving,l=e.isPending,d=e.isLargeViewport,p=this.state.forceSavedMessage;if(c){var b=mo()("editor-post-saved-state","is-saving",{"is-autosaving":u});return Object(Yr.createElement)(Ao.Animate,{type:"loading"},(function(e){var t=e.className;return Object(Yr.createElement)("span",{className:mo()(b,t)},Object(Yr.createElement)(Ao.Dashicon,{icon:"cloud"}),u?Object(A.__)("Autosaving"):Object(A.__)("Saving"))}))}if(o||r)return Object(Yr.createElement)(mc,null);if(!a)return null;if(p||!n&&!i)return Object(Yr.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(Yr.createElement)(fc.a,{icon:hc.a}),Object(A.__)("Saved"));if(!Object(O.get)(t,["_links","wp:action-publish"],!1)&&l)return null;var f=l?Object(A.__)("Save as Pending"):Object(A.__)("Save Draft");return d?Object(Yr.createElement)(Ao.Button,{className:"editor-post-save-draft",onClick:function(){return s()},shortcut:Ro.displayShortcut.primary("s"),isTertiary:!0},f):Object(Yr.createElement)(Ao.Button,{className:"editor-post-save-draft",label:f,onClick:function(){return s()},shortcut:Ro.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),t}(Yr.Component),vc=Object(Xr.compose)([Object(p.withSelect)((function(e,t){var n=t.forceIsDirty,r=t.forceIsSaving,o=e("core/editor"),i=o.isEditedPostNew,c=o.isCurrentPostPublished,a=o.isCurrentPostScheduled,s=o.isEditedPostDirty,u=o.isSavingPost,l=o.isEditedPostSaveable,d=o.getCurrentPost,p=o.isAutosavingPost,b=o.getEditedPostAttribute;return{post:d(),isNew:i(),isPublished:c(),isScheduled:a(),isDirty:n||s(),isSaving:r||u(),isSaveable:l(),isAutosaving:p(),isPending:"pending"===b("status")}})),Object(p.withDispatch)((function(e){return{onSave:e("core/editor").savePost}})),Xr.withSafeTimeout,Object(l.withViewportMatch)({isLargeViewport:"small"})])(Oc);var gc=Object(Xr.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));function jc(e){var t=e.children;return Object(Yr.createElement)($o,{supportKeys:"slug"},t)}var yc=function(e){function t(e){var n,r=e.postSlug,o=e.postTitle,i=e.postID;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={editedSlug:Object(yt.safeDecodeURIComponent)(r)||Bi(o)||i},n.setSlug=n.setSlug.bind(Object(Go.a)(n)),n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"setSlug",value:function(e){var t=this.props,n=t.postSlug,r=t.onUpdateSlug,o=Bi(e.target.value);o!==n&&r(o)}},{key:"render",value:function(){var e=this,t=this.props.instanceId,n=this.state.editedSlug,r="editor-post-slug-"+t;return Object(Yr.createElement)(jc,null,Object(Yr.createElement)("label",{htmlFor:r},Object(A.__)("Slug")),Object(Yr.createElement)("input",{type:"text",id:r,value:n,onChange:function(t){return e.setState({editedSlug:t.target.value})},onBlur:this.setSlug,className:"editor-post-slug__input"}))}}]),t}(Yr.Component),_c=Object(Xr.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getEditedPostAttribute,o=n().id;return{postSlug:r("slug"),postTitle:r("title"),postID:o}})),Object(p.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateSlug:function(e){t({slug:e})}}})),Xr.withInstanceId])(yc);var kc=Object(Xr.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(O.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var Ec=Object(Xr.compose)([Object(p.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(p.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(Yr.createElement)(kc,null,Object(Yr.createElement)(Ao.CheckboxControl,{label:Object(A.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))}));function Sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pc(e){for(var t=1;t0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e.toLowerCase())||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){return Object(Yr.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(Yr.createElement)(Ao.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(O.unescape)(e.name)}),!!e.children.length&&Object(Yr.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,a=i.availableTerms,s=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(O.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(A.__)("Add new category"),Object(A.__)("Add new term")),m=f("new_item_name",Object(A.__)("Add new category"),Object(A.__)("Add new term")),v=f("parent_item",Object(A.__)("Parent Category"),Object(A.__)("Parent Term")),g="— ".concat(v," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),k=Object(O.get)(this.props.taxonomy,["labels","search_items"],Object(A.__)("Search Terms")),E=Object(O.get)(this.props.taxonomy,["name"],Object(A.__)("Terms")),S=a.length>=8;return[S&&Object(Yr.createElement)("label",{key:"filter-label",htmlFor:_},k),S&&Object(Yr.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(Yr.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":E},this.renderTerms(""!==b?s:c)),!d&&o&&Object(Yr.createElement)(Ao.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(Yr.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(Yr.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(Yr.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(Yr.createElement)(Ao.TreeSelect,{label:v,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(Yr.createElement)(Ao.Button,{isSecondary:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),t}(Yr.Component),Tc=Object(Xr.compose)([Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(O.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(O.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),Ao.withSpokenMessages,Xr.withInstanceId,Object(Ao.withFilters)("editor.PostTaxonomyType")])(Cc);var Bc=Object(Xr.compose)([Object(p.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?O.identity:r,i=Object(O.filter)(n,(function(e){return Object(O.includes)(e.types,t)}));return Object(O.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?Tc:nc;return Object(Yr.createElement)(Yr.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(Yr.createElement)(t,{slug:e.slug}),e))}))}));var xc=Object(Xr.compose)([Object(p.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(O.some)(n,(function(e){return Object(O.includes)(e.types,t)}))?r:null})),Ic=n(72),Ac=n.n(Ic),Rc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).edit=e.edit.bind(Object(Go.a)(e)),e.stopEditing=e.stopEditing.bind(Object(Go.a)(e)),e.state={},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"edit",value:function(e){var t=e.target.value;this.props.onChange(t),this.setState({value:t,isDirty:!0})}},{key:"stopEditing",value:function(){this.state.isDirty&&(this.props.onPersist(this.state.value),this.setState({isDirty:!1}))}},{key:"render",value:function(){var e=this.state.value,t=this.props.instanceId;return Object(Yr.createElement)(Yr.Fragment,null,Object(Yr.createElement)("label",{htmlFor:"post-content-".concat(t),className:"screen-reader-text"},Object(A.__)("Type text or HTML")),Object(Yr.createElement)(Ac.a,{autoComplete:"off",dir:"auto",value:e,onChange:this.edit,onBlur:this.stopEditing,className:"editor-post-text-editor",id:"post-content-".concat(t),placeholder:Object(A.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.isDirty?null:{value:e.value,isDirty:!1}}}]),t}(Yr.Component),Dc=Object(Xr.compose)([Object(p.withSelect)((function(e){return{value:(0,e("core/editor").getEditedPostContent)()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.resetEditorBlocks;return{onChange:function(e){n({content:e})},onPersist:function(e){var t=Object(c.parse)(e);r(t)}}})),Xr.withInstanceId])(Rc),Lc=n(159),Nc=function(e){function t(e){var n,r=e.permalinkParts,o=e.slug;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(Go.a)(n)),n}return Object(po.a)(t,e),Object(so.a)(t,[{key:"onSavePermalink",value:function(e){var t=Bi(this.state.editedPostName);e.preventDefault(),this.props.onSave(),t!==this.props.postName&&(this.props.editPost({slug:t}),this.setState({editedPostName:t}))}},{key:"render",value:function(){var e=this,t=this.props.permalinkParts,n=t.prefix,r=t.suffix,o=this.state.editedPostName;return Object(Yr.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(Yr.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(Yr.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(Yr.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(A.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),Object(Yr.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),Object(Yr.createElement)(Ao.Button,{className:"editor-post-permalink-editor__save",isSecondary:!0,onClick:this.onSavePermalink},Object(A.__)("Save")))}}]),t}(Yr.Component),Uc=Object(Xr.compose)([Object(p.withSelect)((function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}})),Object(p.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])(Nc),Fc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).addVisibilityCheck=e.addVisibilityCheck.bind(Object(Go.a)(e)),e.onVisibilityChange=e.onVisibilityChange.bind(Object(Go.a)(e)),e.state={isCopied:!1,isEditingPermalink:!1},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"addVisibilityCheck",value:function(){window.addEventListener("visibilitychange",this.onVisibilityChange)}},{key:"onVisibilityChange",value:function(){var e=this.props,t=e.isEditable,n=e.refreshPost;t||"visible"!==document.visibilityState||n()}},{key:"componentDidUpdate",value:function(e,t){t.isEditingPermalink&&!this.state.isEditingPermalink&&this.linkElement.focus()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("visibilitychange",this.addVisibilityCheck)}},{key:"render",value:function(){var e=this,t=this.props,n=t.isEditable,r=t.isNew,o=t.isPublished,i=t.isViewable,c=t.permalinkParts,a=t.postLink,s=t.postSlug,u=t.postID,l=t.postTitle;if(r||!i||!c||!a)return null;var d=this.state,p=d.isCopied,b=d.isEditingPermalink,f=p?Object(A.__)("Permalink copied"):Object(A.__)("Copy the permalink"),h=c.prefix,m=c.suffix,O=Object(yt.safeDecodeURIComponent)(s)||Bi(l)||u,v=n?h+O+m:h;return Object(Yr.createElement)("div",{className:"editor-post-permalink"},Object(Yr.createElement)(Ao.ClipboardButton,{className:mo()("editor-post-permalink__copy",{"is-copied":p}),text:v,label:f,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":p,icon:Lc.a}),Object(Yr.createElement)("span",{className:"editor-post-permalink__label"},Object(A.__)("Permalink:")),!b&&Object(Yr.createElement)(Ao.ExternalLink,{className:"editor-post-permalink__link",href:o?v:a,target:"_blank",ref:function(t){return e.linkElement=t}},Object(yt.safeDecodeURI)(v),"‎"),b&&Object(Yr.createElement)(Uc,{slug:O,onSave:function(){return e.setState({isEditingPermalink:!1})}}),n&&!b&&Object(Yr.createElement)(Ao.Button,{className:"editor-post-permalink__edit",isSecondary:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(A.__)("Edit")))}}]),t}(Yr.Component),Mc=Object(Xr.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.isPermalinkEditable,o=t.getCurrentPost,i=t.getPermalinkParts,c=t.getEditedPostAttribute,a=t.isCurrentPostPublished,s=e("core").getPostType,u=o(),l=u.id,d=u.link,p=s(c("type"));return{isNew:n(),postLink:d,permalinkParts:i(),postSlug:c("slug"),isEditable:r(),isPublished:a(),postTitle:c("title"),postID:l,isViewable:Object(O.get)(p,["viewable"],!1)}})),Object(p.withDispatch)((function(e){return{refreshPost:e("core/editor").refreshPost}}))])(Fc),Vc=/[\r\n]+/g,zc=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(Go.a)(e)),e.onSelect=e.onSelect.bind(Object(Go.a)(e)),e.onUnselect=e.onUnselect.bind(Object(Go.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(Go.a)(e)),e.state={isSelected:!1},e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"handleFocusOutside",value:function(){this.onUnselect()}},{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(e){var t=e.target.value.replace(Vc," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===Ro.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.isPostTypeViewable,i=e.instanceId,c=e.placeholder,a=e.title,s=this.state.isSelected,u=mo()("wp-block editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),l=Object(ui.decodeEntities)(c);return Object(Yr.createElement)($o,{supportKeys:"title"},Object(Yr.createElement)("div",{className:"editor-post-title"},Object(Yr.createElement)("div",{className:u},Object(Yr.createElement)("div",null,Object(Yr.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},l||Object(A.__)("Add title")),Object(Yr.createElement)(Ac.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:l||Object(A.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:document.body===document.activeElement&&n})),s&&o&&Object(Yr.createElement)(Mc,null))))}}]),t}(Yr.Component),Hc=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=e("core/block-editor").getSettings,i=(0,e("core").getPostType)(n("type")),c=o(),a=c.titlePlaceholder,s=c.focusMode,u=c.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),isPostTypeViewable:Object(O.get)(i,["viewable"],!1),placeholder:a,isFocusMode:s,hasFixedToolbar:u}})),Wc=Object(p.withDispatch)((function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=e("core/editor").editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onUpdate:function(e){o({title:e})},clearSelectedBlock:r}})),Kc=Object(Xr.compose)(Hc,Wc,Xr.withInstanceId,Ao.withFocusOutside)(zc);var Gc=Object(Xr.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(p.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(Qr.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(Yr.createElement)(Ao.Button,{className:"editor-post-trash is-link",onClick:function(){return o.trashPost(n,r)}},Object(A.__)("Move to Trash"))}));var qc=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId;return{isNew:n(),postId:r()}}))((function(e){var t=e.isNew,n=e.postId,r=e.children;return t||!n?null:r}));var Qc=Object(Xr.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(O.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),Yc=n(128);var Xc=Object(p.withSelect)((function(e){return{content:e("core/editor").getEditedPostAttribute("content")}}))((function(e){var t=e.content,n=Object(A._x)("words","Word count type. Do not translate!");return Object(Yr.createElement)("span",{className:"word-count"},Object(Yc.count)(t,n))}));var Zc=Object(p.withSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}))((function(e){var t=e.headingCount,n=e.paragraphCount,r=e.numberOfBlocks,o=e.hasOutlineItemsDisabled,i=e.onRequestClose;return Object(Yr.createElement)(Yr.Fragment,null,Object(Yr.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(A.__)("Document Statistics"),tabIndex:"0"},Object(Yr.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(Yr.createElement)("li",{className:"table-of-contents__count"},Object(A.__)("Words"),Object(Yr.createElement)(Xc,null)),Object(Yr.createElement)("li",{className:"table-of-contents__count"},Object(A.__)("Headings"),Object(Yr.createElement)("span",{className:"table-of-contents__number"},t)),Object(Yr.createElement)("li",{className:"table-of-contents__count"},Object(A.__)("Paragraphs"),Object(Yr.createElement)("span",{className:"table-of-contents__number"},n)),Object(Yr.createElement)("li",{className:"table-of-contents__count"},Object(A.__)("Blocks"),Object(Yr.createElement)("span",{className:"table-of-contents__number"},r)))),t>0&&Object(Yr.createElement)(Yr.Fragment,null,Object(Yr.createElement)("hr",null),Object(Yr.createElement)("h2",{className:"table-of-contents__title"},Object(A.__)("Document Outline")),Object(Yr.createElement)(So,{onSelect:i,hasOutlineItemsDisabled:o})))}));var Jc=Object(p.withSelect)((function(e){return{hasBlocks:!!e("core/block-editor").getBlockCount()}}))((function(e){var t=e.hasBlocks,n=e.hasOutlineItemsDisabled;return Object(Yr.createElement)(Ao.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(Yr.createElement)(Ao.Button,{onClick:t?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(A.__)("Content structure"),tooltipPosition:"bottom","aria-disabled":!t})},renderContent:function(e){var t=e.onClose;return Object(Yr.createElement)(Zc,{onRequestClose:t,hasOutlineItemsDisabled:n})}})})),$c=function(e){function t(){var e;return Object(ao.a)(this,t),(e=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(Object(Go.a)(e)),e}return Object(po.a)(t,e),Object(so.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.warnIfUnsavedChanges)}},{key:"warnIfUnsavedChanges",value:function(e){if((0,this.props.isEditedPostDirty)())return e.returnValue=Object(A.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(Yr.Component),ea=Object(p.withSelect)((function(e){return{isEditedPostDirty:e("core/editor").isEditedPostDirty}}))($c),ta=Object(Xr.createHigherOrderComponent)((function(e){return Object(p.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(Qr.a)(t,["useSubRegistry","registry"]);if(!r)return Object(Yr.createElement)(e,c);var a=Object(Yr.useState)(null),s=Object(vt.a)(a,2),u=s[0],l=s[1];return Object(Yr.useEffect)((function(){var e=Object(p.createRegistry)({"core/block-editor":i.storeConfig},o),t=e.registerStore("core/editor",Kr);Fr(t),l(e)}),[o]),u?Object(Yr.createElement)(p.RegistryProvider,{value:u},Object(Yr.createElement)(e,c)):null}))}),"withRegistryProvider"),na=n(130);function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oa(e){for(var t=1;t0?o(n[0]):void 0),u=i(n),l=1===u.length&&u[0]&&u[0].name===a;return{isGroupable:s&&u.length&&!l,isUngroupable:l&&!!u[0].innerBlocks.length,blocksSelection:u,groupingBlockName:a}})),Object(p.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?O.noop:r,i=t.blocksSelection,a=void 0===i?[]:i,s=t.groupingBlockName,u=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){if(a.length){var e=Object(c.switchToBlockType)(a,s);e&&u(n,e),o()}},onConvertFromGroup:function(){if(a.length){var e=a[0].innerBlocks;e.length&&(u(n,e),o())}}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,i=e.isUngroupable,c=void 0!==i&&i;return Object(Yr.createElement)(Yr.Fragment,null,o&&Object(Yr.createElement)(Ao.MenuItem,{icon:la,onClick:t},Object(A._x)("Group","verb")),c&&Object(Yr.createElement)(Ao.MenuItem,{icon:pa,onClick:n},Object(A._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))}));var fa=Object(p.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(Yr.createElement)(i.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(Yr.createElement)(Yr.Fragment,null,Object(Yr.createElement)(ba,{clientIds:t,onToggle:n}))}))}));function ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ma(e){for(var t=1;t1&&void 0!==c[1]?c[1]:{},r=n.perPage,o=void 0===r?20:r,e.next=3,I()({path:Object(yt.addQueryArgs)("/wp/v2/search",{search:t,per_page:o,type:"post"})});case 3:return i=e.sent,e.abrupt("return",Object(O.map)(i,(function(e){return{id:e.id,url:e.url,title:Object(ui.decodeEntities)(e.title)||Object(A.__)("(no title)"),type:e.subtype||e.type}})));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),va=function(e){function t(e){var n;return Object(ao.a)(this,t),(n=Object(uo.a)(this,Object(lo.a)(t).apply(this,arguments))).getBlockEditorSettings=W()(n.getBlockEditorSettings,{maxSize:1}),e.recovery?Object(uo.a)(n):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(A.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(A.__)("View the autosave"),url:e.settings.autosave.editLink}]}),n)}return Object(po.a)(t,e),Object(so.a)(t,[{key:"getBlockEditorSettings",value:function(e,t,n,r,o,i,c){return ma({},Object(O.pick)(e,["alignWide","allowedBlockTypes","__experimentalPreferredStyleVariations","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomGradients","focusMode","fontSizes","hasFixedToolbar","hasPermissionsToManageWidgets","imageSizes","imageDimensions","isRTL","maxWidth","styles","template","templateLock","titlePlaceholder","onUpdateDefaultBlockStyles","__experimentalEnableLegacyWidgetBlock","__experimentalBlockDirectory","__experimentalEnableFullSiteEditing","__experimentalEnableFullSiteEditingDemo","__experimentalEnablePageTemplates","showInserterHelpPanel","gradients"]),{mediaUpload:r?ia:void 0,__experimentalReusableBlocks:t,__experimentalFetchReusableBlocks:n,__experimentalFetchLinkSuggestions:Oa,__experimentalCanUserUseUnfilteredHTML:o,__experimentalUndo:i,__experimentalShouldInsertAtTheTop:c})}},{key:"componentDidMount",value:function(){if(this.props.updateEditorSettings(this.props.settings),this.props.settings.styles){var e=Object(i.transformStyles)(this.props.settings.styles,".editor-styles-wrapper");Object(O.map)(e,(function(e){if(e){var t=document.createElement("style");t.innerHTML=e,document.body.appendChild(t)}}))}}},{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.post,o=e.blocks,c=e.resetEditorBlocks,s=e.selectionStart,u=e.selectionEnd,l=e.isReady,d=e.settings,p=e.reusableBlocks,b=e.resetEditorBlocksWithoutUndoLevel,f=e.hasUploadPermissions,h=e.isPostTitleSelected,m=e.__experimentalFetchReusableBlocks,O=e.undo;if(!l)return null;var v=this.getBlockEditorSettings(d,p,m,f,t,O,h);return Object(Yr.createElement)(a.EntityProvider,{kind:"root",type:"site"},Object(Yr.createElement)(a.EntityProvider,{kind:"postType",type:r.type,id:r.id},Object(Yr.createElement)(i.BlockEditorProvider,{value:o,onInput:b,onChange:c,selectionStart:s,selectionEnd:u,settings:v,useSubRegistry:!1},n,Object(Yr.createElement)(sa,null),Object(Yr.createElement)(fa,null))))}}]),t}(Yr.Component),ga=Object(Xr.compose)([ta,Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.getEditorSelectionStart,c=t.getEditorSelectionEnd,a=t.__experimentalGetReusableBlocks,s=t.isPostTitleSelected,u=e("core").canUser;return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),selectionStart:i(),selectionEnd:c(),reusableBlocks:a(),hasUploadPermissions:Object(O.defaultTo)(u("create","media"),!0),isPostTitleSelected:s&&s()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalFetchReusableBlocks,a=t.__experimentalTearDownEditor,s=t.undo;return{setupEditor:n,updatePostLock:r,createWarningNotice:e("core/notices").createWarningNotice,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e,t){o(e,ma({},t,{__unstableShouldCreateUndoLevel:!1}))},tearDownEditor:a,__experimentalFetchReusableBlocks:c,undo:s}}))])(va),ja=n(67),ya=n.n(ja);function _a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(Yr.forwardRef)((function(n,r){return L()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(Yr.createElement)(t,Object(qr.a)({ref:r},n))}));return n.forEach((function(n){r[n]=_a(e+"."+n,t[n])})),r}function ka(e,t){return function(){return L()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var Ea=_a("RichText",i.RichText,["Content"]);Ea.isEmpty=ka("RichText.isEmpty",i.RichText.isEmpty);var Sa=_a("Autocomplete",i.Autocomplete),Pa=_a("AlignmentToolbar",i.AlignmentToolbar),wa=_a("BlockAlignmentToolbar",i.BlockAlignmentToolbar),Ca=_a("BlockControls",i.BlockControls,["Slot"]),Ta=_a("BlockEdit",i.BlockEdit),Ba=_a("BlockEditorKeyboardShortcuts",i.BlockEditorKeyboardShortcuts),xa=_a("BlockFormatControls",i.BlockFormatControls,["Slot"]),Ia=_a("BlockIcon",i.BlockIcon),Aa=_a("BlockInspector",i.BlockInspector),Ra=_a("BlockList",i.BlockList),Da=_a("BlockMover",i.BlockMover),La=_a("BlockNavigationDropdown",i.BlockNavigationDropdown),Na=_a("BlockSelectionClearer",i.BlockSelectionClearer),Ua=_a("BlockSettingsMenu",i.BlockSettingsMenu),Fa=_a("BlockTitle",i.BlockTitle),Ma=_a("BlockToolbar",i.BlockToolbar),Va=_a("ColorPalette",i.ColorPalette),za=_a("ContrastChecker",i.ContrastChecker),Ha=_a("CopyHandler",i.CopyHandler),Wa=_a("DefaultBlockAppender",i.DefaultBlockAppender),Ka=_a("FontSizePicker",i.FontSizePicker),Ga=_a("Inserter",i.Inserter),qa=_a("InnerBlocks",i.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),Qa=_a("InspectorAdvancedControls",i.InspectorAdvancedControls,["Slot"]),Ya=_a("InspectorControls",i.InspectorControls,["Slot"]),Xa=_a("PanelColorSettings",i.PanelColorSettings),Za=_a("PlainText",i.PlainText),Ja=_a("RichTextShortcut",i.RichTextShortcut),$a=_a("RichTextToolbarButton",i.RichTextToolbarButton),es=_a("__unstableRichTextInputEvent",i.__unstableRichTextInputEvent),ts=_a("MediaPlaceholder",i.MediaPlaceholder),ns=_a("MediaUpload",i.MediaUpload),rs=_a("MediaUploadCheck",i.MediaUploadCheck),os=_a("MultiBlocksSwitcher",i.MultiBlocksSwitcher),is=_a("MultiSelectScrollIntoView",i.MultiSelectScrollIntoView),cs=_a("NavigableToolbar",i.NavigableToolbar),as=_a("ObserveTyping",i.ObserveTyping),ss=_a("PreserveScrollInReorder",i.PreserveScrollInReorder),us=_a("SkipToSelectedBlock",i.SkipToSelectedBlock),ls=_a("URLInput",i.URLInput),ds=_a("URLInputButton",i.URLInputButton),ps=_a("URLPopover",i.URLPopover),bs=_a("Warning",i.Warning),fs=_a("WritingFlow",i.WritingFlow),hs=ka("createCustomColorsHOC",i.createCustomColorsHOC),ms=ka("getColorClassName",i.getColorClassName),Os=ka("getColorObjectByAttributeValues",i.getColorObjectByAttributeValues),vs=ka("getColorObjectByColorValue",i.getColorObjectByColorValue),gs=ka("getFontSize",i.getFontSize),js=ka("getFontSizeClass",i.getFontSizeClass),ys=ka("withColorContext",i.withColorContext),_s=ka("withColors",i.withColors),ks=ka("withFontSizes",i.withFontSizes);Object(Zr.addFilter)("editor.Autocomplete.completers","editor/autocompleters/set-default-completers",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.push(Object(O.clone)(co)),t===Object(c.getDefaultBlockName)()&&e.push(Object(O.clone)(io)),e})),n.d(t,"AutosaveMonitor",(function(){return fo})),n.d(t,"DocumentOutline",(function(){return So})),n.d(t,"DocumentOutlineCheck",(function(){return Po})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return To})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return Bo})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return xo})),n.d(t,"EditorKeyboardShortcutsRegister",(function(){return Io})),n.d(t,"EditorHistoryRedo",(function(){return No})),n.d(t,"EditorHistoryUndo",(function(){return Fo})),n.d(t,"EditorNotices",(function(){return Vo})),n.d(t,"EntitiesSavedStates",(function(){return Ko})),n.d(t,"ErrorBoundary",(function(){return qo})),n.d(t,"LocalAutosaveMonitor",(function(){return Zo})),n.d(t,"PageAttributesCheck",(function(){return Jo})),n.d(t,"PageAttributesOrder",(function(){return ti})),n.d(t,"PageAttributesParent",(function(){return ai})),n.d(t,"PageTemplate",(function(){return si})),n.d(t,"PostAuthor",(function(){return pi})),n.d(t,"PostAuthorCheck",(function(){return li})),n.d(t,"PostComments",(function(){return bi})),n.d(t,"PostExcerpt",(function(){return fi})),n.d(t,"PostExcerptCheck",(function(){return hi})),n.d(t,"PostFeaturedImage",(function(){return Ei})),n.d(t,"PostFeaturedImageCheck",(function(){return Oi})),n.d(t,"PostFormat",(function(){return wi})),n.d(t,"PostFormatCheck",(function(){return Si})),n.d(t,"PostLastRevision",(function(){return xi})),n.d(t,"PostLastRevisionCheck",(function(){return Ci})),n.d(t,"PostLockedModal",(function(){return Di})),n.d(t,"PostPendingStatus",(function(){return Ni})),n.d(t,"PostPendingStatusCheck",(function(){return Li})),n.d(t,"PostPingbacks",(function(){return Ui})),n.d(t,"PostPreviewButton",(function(){return Ai})),n.d(t,"PostPublishButton",(function(){return Vi})),n.d(t,"PostPublishButtonLabel",(function(){return Fi})),n.d(t,"PostPublishPanel",(function(){return bc})),n.d(t,"PostSavedState",(function(){return vc})),n.d(t,"PostSchedule",(function(){return qi})),n.d(t,"PostScheduleCheck",(function(){return gc})),n.d(t,"PostScheduleLabel",(function(){return Qi})),n.d(t,"PostSlug",(function(){return _c})),n.d(t,"PostSlugCheck",(function(){return jc})),n.d(t,"PostSticky",(function(){return Ec})),n.d(t,"PostStickyCheck",(function(){return kc})),n.d(t,"PostSwitchToDraftButton",(function(){return mc})),n.d(t,"PostTaxonomies",(function(){return Bc})),n.d(t,"PostTaxonomiesCheck",(function(){return xc})),n.d(t,"PostTextEditor",(function(){return Dc})),n.d(t,"PostTitle",(function(){return Kc})),n.d(t,"PostTrash",(function(){return Gc})),n.d(t,"PostTrashCheck",(function(){return qc})),n.d(t,"PostTypeSupportCheck",(function(){return $o})),n.d(t,"PostVisibility",(function(){return Ki})),n.d(t,"PostVisibilityLabel",(function(){return Gi})),n.d(t,"PostVisibilityCheck",(function(){return Qc})),n.d(t,"TableOfContents",(function(){return Jc})),n.d(t,"UnsavedChangesWarning",(function(){return ea})),n.d(t,"WordCount",(function(){return Xc})),n.d(t,"EditorProvider",(function(){return ga})),n.d(t,"blockAutocompleter",(function(){return io})),n.d(t,"userAutocompleter",(function(){return co})),n.d(t,"ServerSideRender",(function(){return ya.a})),n.d(t,"RichText",(function(){return Ea})),n.d(t,"Autocomplete",(function(){return Sa})),n.d(t,"AlignmentToolbar",(function(){return Pa})),n.d(t,"BlockAlignmentToolbar",(function(){return wa})),n.d(t,"BlockControls",(function(){return Ca})),n.d(t,"BlockEdit",(function(){return Ta})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Ba})),n.d(t,"BlockFormatControls",(function(){return xa})),n.d(t,"BlockIcon",(function(){return Ia})),n.d(t,"BlockInspector",(function(){return Aa})),n.d(t,"BlockList",(function(){return Ra})),n.d(t,"BlockMover",(function(){return Da})),n.d(t,"BlockNavigationDropdown",(function(){return La})),n.d(t,"BlockSelectionClearer",(function(){return Na})),n.d(t,"BlockSettingsMenu",(function(){return Ua})),n.d(t,"BlockTitle",(function(){return Fa})),n.d(t,"BlockToolbar",(function(){return Ma})),n.d(t,"ColorPalette",(function(){return Va})),n.d(t,"ContrastChecker",(function(){return za})),n.d(t,"CopyHandler",(function(){return Ha})),n.d(t,"DefaultBlockAppender",(function(){return Wa})),n.d(t,"FontSizePicker",(function(){return Ka})),n.d(t,"Inserter",(function(){return Ga})),n.d(t,"InnerBlocks",(function(){return qa})),n.d(t,"InspectorAdvancedControls",(function(){return Qa})),n.d(t,"InspectorControls",(function(){return Ya})),n.d(t,"PanelColorSettings",(function(){return Xa})),n.d(t,"PlainText",(function(){return Za})),n.d(t,"RichTextShortcut",(function(){return Ja})),n.d(t,"RichTextToolbarButton",(function(){return $a})),n.d(t,"__unstableRichTextInputEvent",(function(){return es})),n.d(t,"MediaPlaceholder",(function(){return ts})),n.d(t,"MediaUpload",(function(){return ns})),n.d(t,"MediaUploadCheck",(function(){return rs})),n.d(t,"MultiBlocksSwitcher",(function(){return os})),n.d(t,"MultiSelectScrollIntoView",(function(){return is})),n.d(t,"NavigableToolbar",(function(){return cs})),n.d(t,"ObserveTyping",(function(){return as})),n.d(t,"PreserveScrollInReorder",(function(){return ss})),n.d(t,"SkipToSelectedBlock",(function(){return us})),n.d(t,"URLInput",(function(){return ls})),n.d(t,"URLInputButton",(function(){return ds})),n.d(t,"URLPopover",(function(){return ps})),n.d(t,"Warning",(function(){return bs})),n.d(t,"WritingFlow",(function(){return fs})),n.d(t,"createCustomColorsHOC",(function(){return hs})),n.d(t,"getColorClassName",(function(){return ms})),n.d(t,"getColorObjectByAttributeValues",(function(){return Os})),n.d(t,"getColorObjectByColorValue",(function(){return vs})),n.d(t,"getFontSize",(function(){return gs})),n.d(t,"getFontSizeClass",(function(){return js})),n.d(t,"withColorContext",(function(){return ys})),n.d(t,"withColors",(function(){return _s})),n.d(t,"withFontSizes",(function(){return ks})),n.d(t,"mediaUpload",(function(){return ia})),n.d(t,"cleanForSlug",(function(){return Bi})),n.d(t,"storeConfig",(function(){return Kr})),n.d(t,"transformStyles",(function(){return i.transformStyles}))},43:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},44:function(e,t){!function(){e.exports=this.wp.dataControls}()},46:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,c,a=n,s=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===r(i)&&(o=o[1]),e.call(n,o,i,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(t.prototype,n),c&&o(t,c),e}();e.exports=c},67:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},7:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},72:function(e,t,n){"use strict";t.__esModule=!0;var r=n(152);t.default=r.default},75:function(e,t){!function(){e.exports=this.wp.coreData}()},8:function(e,t){!function(){e.exports=this.wp.compose}()},85:function(e,t){!function(){e.exports=this.wp.autop}()},89:function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r