PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/llizardheartsallinone.shop/wp-includes/js/dist/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/llizardheartsallinone.shop/wp-includes/js/dist/editor.min.js

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="PLxR")}({"16Al":function(e,t,n){"use strict";var r=n("WbBG");function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},"17x9":function(e,t,n){e.exports=n("16Al")()},"1OyB":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},"1ZqX":function(e,t){!function(){e.exports=this.wp.data}()},"25BE":function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},"4eJC":function(e,t,n){e.exports=function(e,t){var n,r,o,i=0;function c(){var t,c,a=r,s=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c<s;c++)if(a.args[c]!==arguments[c]){a=a.next;continue e}return a!==r&&(a===o&&(o=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(t=new Array(s),c=0;c<s;c++)t[c]=arguments[c];return a={args:t,val:e.apply(null,t)},r?(r.prev=a,a.next=r):o=a,i===n?(o=o.prev).next=null:i++,r=a,a.val}return t&&t.maxSize&&(n=t.maxSize),c.clear=function(){r=null,o=null,i=0},c}},"51Zz":function(e,t){!function(){e.exports=this.wp.dataControls}()},"6aBm":function(e,t){!function(){e.exports=this.wp.mediaUtils}()},"7fqt":function(e,t){!function(){e.exports=this.wp.wordcount}()},CNgt:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n("cDcd"),s=n("17x9"),u=n("GemG"),l=n("Rk8H"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.dispatchEvent=function(e){var n=document.createEvent("Event");n.initEvent(e,!0,!1),t.textarea.dispatchEvent(n)},t.updateLineHeight=function(){t.setState({lineHeight:l(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t.saveDOMNodeRef=function(e){var n=t.props.innerRef;n&&n(e),t.textarea=e},t.getLocals=function(){var e=t,n=e.props,r=(n.onResize,n.maxRows),o=(n.onChange,n.style),a=(n.innerRef,c(n,["onResize","maxRows","onChange","style","innerRef"])),s=e.state.lineHeight,u=e.saveDOMNodeRef,l=r&&s?s*r:null;return i({},a,{saveDOMNodeRef:u,style:l?i({},o,{maxHeight:l}):o,onChange:t.onChange})},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.onResize;"number"==typeof t.maxRows&&this.updateLineHeight(),setTimeout((function(){return u(e.textarea)})),n&&this.textarea.addEventListener("autosize:resized",n)},t.prototype.componentWillUnmount=function(){var e=this.props.onResize;e&&this.textarea.removeEventListener("autosize:resized",e),this.dispatchEvent("autosize:destroy")},t.prototype.render=function(){var e=this.getLocals(),t=e.children,n=e.saveDOMNodeRef,r=c(e,["children","saveDOMNodeRef"]);return a.createElement("textarea",i({},r,{ref:n}),t)},t.prototype.componentDidUpdate=function(e){this.props.value===this.currentValue&&this.props.rows===e.rows||this.dispatchEvent("autosize:update")},t.defaultProps={rows:1},t.propTypes={rows:s.number,maxRows:s.number,onResize:s.func,innerRef:s.func},t}(a.Component);t.default=d},DSFK:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},Ff2n:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},FqII:function(e,t){!function(){e.exports=this.wp.date}()},GRId:function(e,t){!function(){e.exports=this.wp.element}()},GemG:function(e,t,n){var r,o,i;
/*!
	autosize 4.0.4
	license: MIT
	http://www.jacklmoore.com/autosize
*/o=[e,t],void 0===(i="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),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<t?"hidden"===n.overflowY&&(u("scroll"),l(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(u("hidden"),l(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),c!==r){c=r;var o=i("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function a(e){var t=o.get(e);t&&t.destroy()}function s(e){var t=o.get(e);t&&t.update()}var u=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((u=function(e){return e}).destroy=function(e){return e},u.update=function(e){return e}):((u=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return c(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},u.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}),t.default=u,e.exports=t.default})?r.apply(t,o):r)||(e.exports=i)},HSyU:function(e,t){!function(){e.exports=this.wp.blocks}()},"HaE+":function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var a=e[i](c),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function a(e){r(c,o,i,a,s,"next",e)}function s(e){r(c,o,i,a,s,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},JREk:function(e,t){!function(){e.exports=this.wp.serverSideRender}()},JX7q: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}))},Ji7U:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},K9lf:function(e,t){!function(){e.exports=this.wp.compose}()},KEfo:function(e,t){!function(){e.exports=this.wp.viewport}()},KQm4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("25BE");function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}},Mmq9:function(e,t){!function(){e.exports=this.wp.url}()},NMb1:function(e,t){!function(){e.exports=this.wp.deprecated}()},O6Fj:function(e,t,n){"use strict";t.__esModule=!0;var r=n("CNgt");t.default=r.default},ODXe:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("DSFK");var o=n("PYwp");function i(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||Object(o.a)()}},PLxR:function(e,t,n){"use strict";n.r(t),n.d(t,"blockAutocompleter",(function(){return Jr})),n.d(t,"userAutocompleter",(function(){return $r})),n.d(t,"AutosaveMonitor",(function(){return ao})),n.d(t,"DocumentOutline",(function(){return vo})),n.d(t,"DocumentOutlineCheck",(function(){return Oo})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return So})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return wo})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return Po})),n.d(t,"EditorHistoryRedo",(function(){return Co})),n.d(t,"EditorHistoryUndo",(function(){return To})),n.d(t,"EditorNotices",(function(){return Io})),n.d(t,"ErrorBoundary",(function(){return Ao})),n.d(t,"LocalAutosaveMonitor",(function(){return Uo})),n.d(t,"PageAttributesCheck",(function(){return Do})),n.d(t,"PageAttributesOrder",(function(){return Vo})),n.d(t,"PageAttributesParent",(function(){return Ko})),n.d(t,"PageTemplate",(function(){return Go})),n.d(t,"PostAuthor",(function(){return Xo})),n.d(t,"PostAuthorCheck",(function(){return Yo})),n.d(t,"PostComments",(function(){return Zo})),n.d(t,"PostExcerpt",(function(){return Jo})),n.d(t,"PostExcerptCheck",(function(){return ei})),n.d(t,"PostFeaturedImage",(function(){return ui})),n.d(t,"PostFeaturedImageCheck",(function(){return ni})),n.d(t,"PostFormat",(function(){return pi})),n.d(t,"PostFormatCheck",(function(){return li})),n.d(t,"PostLastRevision",(function(){return mi})),n.d(t,"PostLastRevisionCheck",(function(){return bi})),n.d(t,"PostLockedModal",(function(){return ji})),n.d(t,"PostPendingStatus",(function(){return _i})),n.d(t,"PostPendingStatusCheck",(function(){return yi})),n.d(t,"PostPingbacks",(function(){return ki})),n.d(t,"PostPreviewButton",(function(){return Oi})),n.d(t,"PostPublishButton",(function(){return wi})),n.d(t,"PostPublishButtonLabel",(function(){return Ei})),n.d(t,"PostPublishPanel",(function(){return Qi})),n.d(t,"PostSavedState",(function(){return Ji})),n.d(t,"PostSchedule",(function(){return Bi})),n.d(t,"PostScheduleCheck",(function(){return $i})),n.d(t,"PostScheduleLabel",(function(){return Ii})),n.d(t,"PostSticky",(function(){return tc})),n.d(t,"PostStickyCheck",(function(){return ec})),n.d(t,"PostSwitchToDraftButton",(function(){return Xi})),n.d(t,"PostTaxonomies",(function(){return ic})),n.d(t,"PostTaxonomiesCheck",(function(){return cc})),n.d(t,"PostTextEditor",(function(){return lc})),n.d(t,"PostTitle",(function(){return gc})),n.d(t,"PostTrash",(function(){return jc})),n.d(t,"PostTrashCheck",(function(){return yc})),n.d(t,"PostTypeSupportCheck",(function(){return Fo})),n.d(t,"PostVisibility",(function(){return Ti})),n.d(t,"PostVisibilityLabel",(function(){return xi})),n.d(t,"PostVisibilityCheck",(function(){return _c})),n.d(t,"TableOfContents",(function(){return wc})),n.d(t,"UnsavedChangesWarning",(function(){return Cc})),n.d(t,"WordCount",(function(){return Ec})),n.d(t,"EditorProvider",(function(){return Hc})),n.d(t,"ServerSideRender",(function(){return Kc.a})),n.d(t,"RichText",(function(){return Yc})),n.d(t,"Autocomplete",(function(){return Qc})),n.d(t,"AlignmentToolbar",(function(){return Xc})),n.d(t,"BlockAlignmentToolbar",(function(){return Zc})),n.d(t,"BlockControls",(function(){return Jc})),n.d(t,"BlockEdit",(function(){return $c})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return ea})),n.d(t,"BlockFormatControls",(function(){return ta})),n.d(t,"BlockIcon",(function(){return na})),n.d(t,"BlockInspector",(function(){return ra})),n.d(t,"BlockList",(function(){return oa})),n.d(t,"BlockMover",(function(){return ia})),n.d(t,"BlockNavigationDropdown",(function(){return ca})),n.d(t,"BlockSelectionClearer",(function(){return aa})),n.d(t,"BlockSettingsMenu",(function(){return sa})),n.d(t,"BlockTitle",(function(){return ua})),n.d(t,"BlockToolbar",(function(){return la})),n.d(t,"ColorPalette",(function(){return da})),n.d(t,"ContrastChecker",(function(){return pa})),n.d(t,"CopyHandler",(function(){return ba})),n.d(t,"DefaultBlockAppender",(function(){return fa})),n.d(t,"FontSizePicker",(function(){return ha})),n.d(t,"Inserter",(function(){return ma})),n.d(t,"InnerBlocks",(function(){return va})),n.d(t,"InspectorAdvancedControls",(function(){return Oa})),n.d(t,"InspectorControls",(function(){return ga})),n.d(t,"PanelColorSettings",(function(){return ja})),n.d(t,"PlainText",(function(){return ya})),n.d(t,"RichTextShortcut",(function(){return _a})),n.d(t,"RichTextToolbarButton",(function(){return ka})),n.d(t,"__unstableRichTextInputEvent",(function(){return Ea})),n.d(t,"MediaPlaceholder",(function(){return Sa})),n.d(t,"MediaUpload",(function(){return wa})),n.d(t,"MediaUploadCheck",(function(){return Pa})),n.d(t,"MultiBlocksSwitcher",(function(){return Ca})),n.d(t,"MultiSelectScrollIntoView",(function(){return Ta})),n.d(t,"NavigableToolbar",(function(){return xa})),n.d(t,"ObserveTyping",(function(){return Ba})),n.d(t,"PreserveScrollInReorder",(function(){return Ia})),n.d(t,"SkipToSelectedBlock",(function(){return Aa})),n.d(t,"URLInput",(function(){return Ra})),n.d(t,"URLInputButton",(function(){return La})),n.d(t,"URLPopover",(function(){return Na})),n.d(t,"Warning",(function(){return Ua})),n.d(t,"WritingFlow",(function(){return Da})),n.d(t,"createCustomColorsHOC",(function(){return Fa})),n.d(t,"getColorClassName",(function(){return Ma})),n.d(t,"getColorObjectByAttributeValues",(function(){return Va})),n.d(t,"getColorObjectByColorValue",(function(){return za})),n.d(t,"getFontSize",(function(){return Ha})),n.d(t,"getFontSizeClass",(function(){return Wa})),n.d(t,"withColorContext",(function(){return Ka})),n.d(t,"withColors",(function(){return Ga})),n.d(t,"withFontSizes",(function(){return qa})),n.d(t,"mediaUpload",(function(){return Bc})),n.d(t,"cleanForSlug",(function(){return hi})),n.d(t,"storeConfig",(function(){return Wr})),n.d(t,"transformStyles",(function(){return a.transformStyles}));var r={};n.r(r),n.d(r,"getDependencies",(function(){return ee})),n.d(r,"apply",(function(){return te})),n.d(r,"update",(function(){return ne}));var o={};n.r(o),n.d(o,"meta",(function(){return r}));var i={};n.r(i),n.d(i,"setupEditor",(function(){return je})),n.d(i,"__experimentalTearDownEditor",(function(){return ye})),n.d(i,"__experimentalSubscribeSources",(function(){return _e})),n.d(i,"resetPost",(function(){return ke})),n.d(i,"resetAutosave",(function(){return Ee})),n.d(i,"__experimentalRequestPostUpdateStart",(function(){return Se})),n.d(i,"__experimentalRequestPostUpdateFinish",(function(){return we})),n.d(i,"updatePost",(function(){return Pe})),n.d(i,"setupEditorState",(function(){return Ce})),n.d(i,"editPost",(function(){return Te})),n.d(i,"__experimentalOptimisticUpdatePost",(function(){return xe})),n.d(i,"savePost",(function(){return Be})),n.d(i,"refreshPost",(function(){return Ie})),n.d(i,"trashPost",(function(){return Ae})),n.d(i,"autosave",(function(){return Re})),n.d(i,"__experimentalLocalAutosave",(function(){return Le})),n.d(i,"redo",(function(){return Ne})),n.d(i,"undo",(function(){return Ue})),n.d(i,"createUndoLevel",(function(){return De})),n.d(i,"updatePostLock",(function(){return Fe})),n.d(i,"__experimentalFetchReusableBlocks",(function(){return Me})),n.d(i,"__experimentalReceiveReusableBlocks",(function(){return Ve})),n.d(i,"__experimentalSaveReusableBlock",(function(){return ze})),n.d(i,"__experimentalDeleteReusableBlock",(function(){return He})),n.d(i,"__experimentalUpdateReusableBlock",(function(){return We})),n.d(i,"__experimentalConvertBlockToStatic",(function(){return Ke})),n.d(i,"__experimentalConvertBlockToReusable",(function(){return Ge})),n.d(i,"enablePublishSidebar",(function(){return qe})),n.d(i,"disablePublishSidebar",(function(){return Ye})),n.d(i,"lockPostSaving",(function(){return Qe})),n.d(i,"unlockPostSaving",(function(){return Xe})),n.d(i,"resetEditorBlocks",(function(){return Ze})),n.d(i,"updateEditorSettings",(function(){return Je})),n.d(i,"resetBlocks",(function(){return et})),n.d(i,"receiveBlocks",(function(){return tt})),n.d(i,"updateBlock",(function(){return nt})),n.d(i,"updateBlockAttributes",(function(){return rt})),n.d(i,"selectBlock",(function(){return ot})),n.d(i,"startMultiSelect",(function(){return it})),n.d(i,"stopMultiSelect",(function(){return ct})),n.d(i,"multiSelect",(function(){return at})),n.d(i,"clearSelectedBlock",(function(){return st})),n.d(i,"toggleSelection",(function(){return ut})),n.d(i,"replaceBlocks",(function(){return lt})),n.d(i,"replaceBlock",(function(){return dt})),n.d(i,"moveBlocksDown",(function(){return pt})),n.d(i,"moveBlocksUp",(function(){return bt})),n.d(i,"moveBlockToPosition",(function(){return ft})),n.d(i,"insertBlock",(function(){return ht})),n.d(i,"insertBlocks",(function(){return mt})),n.d(i,"showInsertionPoint",(function(){return vt})),n.d(i,"hideInsertionPoint",(function(){return Ot})),n.d(i,"setTemplateValidity",(function(){return gt})),n.d(i,"synchronizeTemplate",(function(){return jt})),n.d(i,"mergeBlocks",(function(){return yt})),n.d(i,"removeBlocks",(function(){return _t})),n.d(i,"removeBlock",(function(){return kt})),n.d(i,"toggleBlockMode",(function(){return Et})),n.d(i,"startTyping",(function(){return St})),n.d(i,"stopTyping",(function(){return wt})),n.d(i,"enterFormattedText",(function(){return Pt})),n.d(i,"exitFormattedText",(function(){return Ct})),n.d(i,"insertDefaultBlock",(function(){return Tt})),n.d(i,"updateBlockListSettings",(function(){return xt}));var c={};n.r(c),n.d(c,"hasEditorUndo",(function(){return Nt})),n.d(c,"hasEditorRedo",(function(){return Ut})),n.d(c,"isEditedPostNew",(function(){return Dt})),n.d(c,"hasChangedContent",(function(){return Ft})),n.d(c,"isEditedPostDirty",(function(){return Mt})),n.d(c,"isCleanNewPost",(function(){return Vt})),n.d(c,"getCurrentPost",(function(){return zt})),n.d(c,"getCurrentPostType",(function(){return Ht})),n.d(c,"getCurrentPostId",(function(){return Wt})),n.d(c,"getCurrentPostRevisionsCount",(function(){return Kt})),n.d(c,"getCurrentPostLastRevisionId",(function(){return Gt})),n.d(c,"getPostEdits",(function(){return qt})),n.d(c,"getCurrentPostAttribute",(function(){return Yt})),n.d(c,"getEditedPostAttribute",(function(){return Qt})),n.d(c,"getAutosaveAttribute",(function(){return Xt})),n.d(c,"getEditedPostVisibility",(function(){return Zt})),n.d(c,"isCurrentPostPending",(function(){return Jt})),n.d(c,"isCurrentPostPublished",(function(){return $t})),n.d(c,"isCurrentPostScheduled",(function(){return en})),n.d(c,"isEditedPostPublishable",(function(){return tn})),n.d(c,"isEditedPostSaveable",(function(){return nn})),n.d(c,"isEditedPostEmpty",(function(){return rn})),n.d(c,"isEditedPostAutosaveable",(function(){return on})),n.d(c,"getAutosave",(function(){return cn})),n.d(c,"hasAutosave",(function(){return an})),n.d(c,"isEditedPostBeingScheduled",(function(){return sn})),n.d(c,"isEditedPostDateFloating",(function(){return un})),n.d(c,"isSavingPost",(function(){return ln})),n.d(c,"didPostSaveRequestSucceed",(function(){return dn})),n.d(c,"didPostSaveRequestFail",(function(){return pn})),n.d(c,"isAutosavingPost",(function(){return bn})),n.d(c,"isPreviewingPost",(function(){return fn})),n.d(c,"getEditedPostPreviewLink",(function(){return hn})),n.d(c,"getSuggestedPostFormat",(function(){return mn})),n.d(c,"getBlocksForSerialization",(function(){return vn})),n.d(c,"getEditedPostContent",(function(){return On})),n.d(c,"__experimentalGetReusableBlock",(function(){return gn})),n.d(c,"__experimentalIsSavingReusableBlock",(function(){return jn})),n.d(c,"__experimentalIsFetchingReusableBlock",(function(){return yn})),n.d(c,"__experimentalGetReusableBlocks",(function(){return _n})),n.d(c,"getStateBeforeOptimisticTransaction",(function(){return kn})),n.d(c,"isPublishingPost",(function(){return En})),n.d(c,"isPermalinkEditable",(function(){return Sn})),n.d(c,"getPermalink",(function(){return wn})),n.d(c,"getPermalinkParts",(function(){return Pn})),n.d(c,"inSomeHistory",(function(){return Cn})),n.d(c,"isPostLocked",(function(){return Tn})),n.d(c,"isPostSavingLocked",(function(){return xn})),n.d(c,"isPostAutosavingLocked",(function(){return Bn})),n.d(c,"isPostLockTakeover",(function(){return In})),n.d(c,"getPostLockUser",(function(){return An})),n.d(c,"getActivePostLock",(function(){return Rn})),n.d(c,"canUserUseUnfilteredHTML",(function(){return Ln})),n.d(c,"isPublishSidebarEnabled",(function(){return Nn})),n.d(c,"getEditorBlocks",(function(){return Un})),n.d(c,"__unstableIsEditorReady",(function(){return Dn})),n.d(c,"getEditorSettings",(function(){return Fn})),n.d(c,"getBlockName",(function(){return Vn})),n.d(c,"isBlockValid",(function(){return zn})),n.d(c,"getBlockAttributes",(function(){return Hn})),n.d(c,"getBlock",(function(){return Wn})),n.d(c,"getBlocks",(function(){return Kn})),n.d(c,"__unstableGetBlockWithoutInnerBlocks",(function(){return Gn})),n.d(c,"getClientIdsOfDescendants",(function(){return qn})),n.d(c,"getClientIdsWithDescendants",(function(){return Yn})),n.d(c,"getGlobalBlockCount",(function(){return Qn})),n.d(c,"getBlocksByClientId",(function(){return Xn})),n.d(c,"getBlockCount",(function(){return Zn})),n.d(c,"getBlockSelectionStart",(function(){return Jn})),n.d(c,"getBlockSelectionEnd",(function(){return $n})),n.d(c,"getSelectedBlockCount",(function(){return er})),n.d(c,"hasSelectedBlock",(function(){return tr})),n.d(c,"getSelectedBlockClientId",(function(){return nr})),n.d(c,"getSelectedBlock",(function(){return rr})),n.d(c,"getBlockRootClientId",(function(){return or})),n.d(c,"getBlockHierarchyRootClientId",(function(){return ir})),n.d(c,"getAdjacentBlockClientId",(function(){return cr})),n.d(c,"getPreviousBlockClientId",(function(){return ar})),n.d(c,"getNextBlockClientId",(function(){return sr})),n.d(c,"getSelectedBlocksInitialCaretPosition",(function(){return ur})),n.d(c,"getMultiSelectedBlockClientIds",(function(){return lr})),n.d(c,"getMultiSelectedBlocks",(function(){return dr})),n.d(c,"getFirstMultiSelectedBlockClientId",(function(){return pr})),n.d(c,"getLastMultiSelectedBlockClientId",(function(){return br})),n.d(c,"isFirstMultiSelectedBlock",(function(){return fr})),n.d(c,"isBlockMultiSelected",(function(){return hr})),n.d(c,"isAncestorMultiSelected",(function(){return mr})),n.d(c,"getMultiSelectedBlocksStartClientId",(function(){return vr})),n.d(c,"getMultiSelectedBlocksEndClientId",(function(){return Or})),n.d(c,"getBlockOrder",(function(){return gr})),n.d(c,"getBlockIndex",(function(){return jr})),n.d(c,"isBlockSelected",(function(){return yr})),n.d(c,"hasSelectedInnerBlock",(function(){return _r})),n.d(c,"isBlockWithinSelection",(function(){return kr})),n.d(c,"hasMultiSelection",(function(){return Er})),n.d(c,"isMultiSelecting",(function(){return Sr})),n.d(c,"isSelectionEnabled",(function(){return wr})),n.d(c,"getBlockMode",(function(){return Pr})),n.d(c,"isTyping",(function(){return Cr})),n.d(c,"isCaretWithinFormattedText",(function(){return Tr})),n.d(c,"getBlockInsertionPoint",(function(){return xr})),n.d(c,"isBlockInsertionPointVisible",(function(){return Br})),n.d(c,"isValidTemplate",(function(){return Ir})),n.d(c,"getTemplate",(function(){return Ar})),n.d(c,"getTemplateLock",(function(){return Rr})),n.d(c,"canInsertBlockType",(function(){return Lr})),n.d(c,"getInserterItems",(function(){return Nr})),n.d(c,"hasInserterItems",(function(){return Ur})),n.d(c,"getBlockListSettings",(function(){return Dr}));var a=n("axFQ"),s=n("HSyU"),u=(n("jZUy"),n("onLe"),n("ZU7w")),l=n("qRz9"),d=n("KEfo"),p=n("vpQ4"),b=n("1ZqX"),f=n("51Zz"),h=n("rePB"),m=n("U8pU"),v=n("hx/w"),O=n.n(v),g=n("YLtl"),j={insertUsage:{},isPublishSidebarEnabled:!0},y=Object(p.a)({},a.SETTINGS_DEFAULTS,{richEditingEnabled:!0,codeEditingEnabled:!0,enableCustomFields:!1});function _(e){return e&&"object"===Object(m.a)(e)&&"raw"in e?e.raw:e}var k=Object(b.combineReducers)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_REUSABLE_BLOCKS":return Object(p.a)({},e,Object(g.keyBy)(t.results,"id"));case"UPDATE_REUSABLE_BLOCK":var n=t.id,r=t.changes;return Object(p.a)({},e,Object(h.a)({},n,Object(p.a)({},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(p.a)({},Object(g.omit)(e,o),Object(h.a)({},i,Object(p.a)({},c,{id:i})));case"REMOVE_REUSABLE_BLOCK":var a=t.id;return Object(g.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?Object(p.a)({},e,Object(h.a)({},n,!0)):e;case"FETCH_REUSABLE_BLOCKS_SUCCESS":case"FETCH_REUSABLE_BLOCKS_FAILURE":var r=t.id;return Object(g.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 Object(p.a)({},e,Object(h.a)({},t.id,!0));case"SAVE_REUSABLE_BLOCK_SUCCESS":case"SAVE_REUSABLE_BLOCK_FAILURE":var n=t.id;return Object(g.omit)(e,n)}return e}});var E=O()(Object(b.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]:j,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENABLE_PUBLISH_SIDEBAR":return Object(p.a)({},e,{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return Object(p.a)({},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:k,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 Object(p.a)({},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 Object(p.a)({},e,Object(h.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(g.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]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return Object(p.a)({},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 Object(p.a)({},e,Object(h.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(g.omit)(e,t.lockName)}return e}})),S=n("gQxa"),w=n.n(S),P=n("o0o1"),C=n.n(P),T=n("HaE+"),x=n("ywyh"),B=n.n(x),I=n("l3Sj"),A=n("ODXe"),R=n("KQm4"),L=n("NMb1"),N=n.n(L),U=n("rl8x"),D=n.n(U),F=new Set(["meta"]),M="core/editor",V=/%(?:postname|pagename)%/,z=["title","excerpt","content"];function H(e){var t=e.previousPost,n=e.post,r=e.postType;if(Object(g.get)(e.options,["isAutosave"]))return[];var o,i=["publish","private","future"],c=Object(g.includes)(i,t.status),a=Object(g.includes)(i,n.status),s=Object(g.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 W(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(I.__)("Publishing failed."),private:Object(I.__)("Publishing failed."),future:Object(I.__)("Scheduling failed.")},a=i||-1===o.indexOf(n.status)?Object(I.__)("Updating failed."):c[n.status];return r.message&&!/<\/?[^>]*>/.test(r.message)&&(a=Object(I.sprintf)(Object(I.__)("%1$s Error message: %2$s"),a,r.message)),[a,{id:"SAVE_POST_NOTICE_ID"}]}var K=n("4eJC"),G=n.n(K),q=n("UuzZ"),Y=G()((function(e){1===e.length&&Object(s.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(s.serialize)(e);return 1===e.length&&e[0].name===Object(s.getFreeformContentHandlerName)()&&(t=Object(q.removep)(t)),t}),{maxSize:1});function Q(e){return"wp-autosave-block-editor-post-".concat(e)}function X(e){window.sessionStorage.removeItem(Q(e))}var Z={AWAIT_NEXT_STATE_CHANGE:Object(b.createRegistryControl)((function(e){return function(){return new Promise((function(t){var n=e.subscribe((function(){n(),t()}))}))}})),GET_REGISTRY:Object(b.createRegistryControl)((function(e){return function(){return e}})),LOCAL_AUTOSAVE_SET:function(e){!function(e,t,n,r){window.sessionStorage.setItem(Q(e),JSON.stringify({post_title:t,content:n,excerpt:r}))}(e.postId,e.title,e.content,e.excerpt)}},J=C.a.mark(ee),$=C.a.mark(ne);function ee(){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.select)("core/editor","getEditedPostAttribute","meta");case 2:return e.t0=e.sent,e.abrupt("return",{meta:e.t0});case 4:case"end":return e.stop()}}),J)}function te(e,t){return t.meta[e.meta]}function ne(e,t){return C.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Te({meta:Object(h.a)({},e.meta,t)});case 2:case"end":return n.stop()}}),$)}var re=C.a.mark(Oe),oe=C.a.mark(ge),ie=C.a.mark(je),ce=C.a.mark(_e),ae=C.a.mark(Ee),se=C.a.mark(Te),ue=C.a.mark(Be),le=C.a.mark(Ie),de=C.a.mark(Ae),pe=C.a.mark(Re),be=C.a.mark(Le),fe=C.a.mark(Ne),he=C.a.mark(Ue),me=C.a.mark(Ze),ve=new WeakMap;function Oe(e){var t,n,r,i,c,a,s,u,l,d,b,m,v,O;return C.a.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,{type:"GET_REGISTRY"};case 2:if(t=g.sent,ve.has(t)){g.next=5;break}return g.abrupt("return",e);case 5:n=ve.get(t),r=e,i=0;case 8:if(!(i<e.length)){g.next=37;break}return c=e[i],g.next=12,Object(f.select)("core/blocks","getBlockType",c.name);case 12:a=g.sent,s=0,u=Object.entries(a.attributes);case 14:if(!(s<u.length)){g.next=30;break}if(l=Object(A.a)(u[s],2),d=l[0],b=l[1],o[b.source]&&o[b.source].apply){g.next=18;break}return g.abrupt("continue",27);case 18:if(n.has(o[b.source])){g.next=20;break}return g.abrupt("continue",27);case 20:if(m=n.get(o[b.source]),(v=o[b.source].apply(b,m))!==c.attributes[d]){g.next=24;break}return g.abrupt("continue",27);case 24:r===e&&(r=Object(R.a)(r)),c=Object(p.a)({},c,{attributes:Object(p.a)({},c.attributes,Object(h.a)({},d,v))}),r.splice(i,1,c);case 27:s++,g.next=14;break;case 30:if(!c.innerBlocks.length){g.next=34;break}return g.delegateYield(Oe(c.innerBlocks),"t0",32);case 32:(O=g.t0)!==c.innerBlocks&&(r===e&&(r=Object(R.a)(r)),c=Object(p.a)({},c,{innerBlocks:O}),r.splice(i,1,c));case 34:i++,g.next=8;break;case 37:return g.abrupt("return",r);case 38:case"end":return g.stop()}}),re)}function ge(){var e,t,n,r,i,c,a,s,u,l,d=arguments;return C.a.wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if((e=d.length>0&&void 0!==d[0]?d[0]:Object.values(o)).length){p.next=3;break}return p.abrupt("return");case 3:return p.next=5,{type:"GET_REGISTRY"};case 5:t=p.sent,ve.has(t)||ve.set(t,new WeakMap),n=ve.get(t),r=!0,i=!1,c=void 0,p.prev=11,a=e[Symbol.iterator]();case 13:if(r=(s=a.next()).done){p.next=21;break}return u=s.value,p.delegateYield(u.getDependencies(),"t0",16);case 16:l=p.t0,n.set(u,l);case 18:r=!0,p.next=13;break;case 21:p.next=27;break;case 23:p.prev=23,p.t1=p.catch(11),i=!0,c=p.t1;case 27:p.prev=27,p.prev=28,r||null==a.return||a.return();case 30:if(p.prev=30,!i){p.next=33;break}throw c;case 33:return p.finish(30);case 34:return p.finish(27);case 35:case"end":return p.stop()}}),oe,null,[[11,23,27,35],[28,,30,34]])}function je(e,t,n){var r,o;return C.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return r=Object(g.has)(t,["content"])?t.content:e.content.raw,o=Object(s.parse)(r),"auto-draft"===e.status&&n&&(o=Object(s.synchronizeBlocksWithTemplate)(o,n)),i.next=6,ke(e);case 6:return i.delegateYield(ge(),"t0",7);case 7:return i.next=9,{type:"SETUP_EDITOR",post:e,edits:t,template:n};case 9:return i.next=11,Ze(o,{__unstableShouldCreateUndoLevel:!1});case 11:return i.next=13,Ce(e);case 13:if(!t||!Object.keys(t).some((function(n){return t[n]!==(Object(g.has)(e,[n,"raw"])?e[n].raw:e[n])}))){i.next=16;break}return i.next=16,Te(t);case 16:return i.delegateYield(_e(),"t1",17);case 17:case"end":return i.stop()}}),ie)}function ye(){return{type:"TEAR_DOWN_EDITOR"}}function _e(){var e,t,n,r,i,c,a,s;return C.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=3,{type:"AWAIT_NEXT_STATE_CHANGE"};case 3:return u.next=5,Object(f.select)(M,"__unstableIsEditorReady");case 5:if(u.sent){u.next=8;break}return u.abrupt("break",36);case 8:return u.next=10,{type:"GET_REGISTRY"};case 10:e=u.sent,t=!1,n=0,r=Object.values(o);case 13:if(!(n<r.length)){u.next=26;break}if((i=r[n]).getDependencies){u.next=17;break}return u.abrupt("continue",23);case 17:return u.delegateYield(i.getDependencies(),"t0",18);case 18:c=u.t0,ve.has(e)||ve.set(e,new WeakMap),a=ve.get(e),s=a.get(i),D()(c,s)||(a.set(i,c),t=!0);case 23:n++,u.next=13;break;case 26:if(!t){u.next=34;break}return u.t1=Ze,u.next=30,Object(f.select)(M,"getEditorBlocks");case 30:return u.t2=u.sent,u.t3={__unstableShouldCreateUndoLevel:!1},u.next=34,(0,u.t1)(u.t2,u.t3);case 34:u.next=0;break;case 36:case"end":return u.stop()}}),ce)}function ke(e){return{type:"RESET_POST",post:e}}function Ee(e){var t;return C.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return N()("resetAutosave action (`core/editor` store)",{alternative:"receiveAutosaves action (`core` store)",plugin:"Gutenberg"}),n.next=3,Object(f.select)(M,"getCurrentPostId");case 3:return t=n.sent,n.next=6,Object(f.dispatch)("core","receiveAutosaves",t,e);case 6:return n.abrupt("return",{type:"__INERT__"});case 7:case"end":return n.stop()}}),ae)}function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",options:e}}function we(){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 Ce(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Te(e,t){var n,r,o;return C.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(f.select)(M,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(f.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),se)}function xe(e){return Object(p.a)({},Pe(e),{optimist:{id:"post-update"}})}function Be(){var e,t,n,r,o,i,c,a=arguments;return C.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(f.select)(M,"isEditedPostSaveable");case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:return s.next=7,Object(f.select)(M,"getEditedPostContent");case 7:if(s.t0=s.sent,t={content:s.t0},e.isAutosave){s.next=12;break}return s.next=12,Object(f.dispatch)(M,"editPost",t,{undoIgnore:!0});case 12:return s.next=14,Se(e);case 14:return s.next=16,Object(f.select)(M,"getCurrentPost");case 16:return n=s.sent,s.t1=p.a,s.t2={id:n.id},s.next=21,Object(f.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 21:return s.t3=s.sent,s.t4=t,t=(0,s.t1)(s.t2,s.t3,s.t4),s.next=26,Object(f.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 26:return s.next=28,we(e);case 28:return s.next=30,Object(f.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 30:if(!(r=s.sent)){s.next=38;break}if(!(o=W({post:n,edits:t,error:r})).length){s.next=36;break}return s.next=36,f.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(R.a)(o)));case 36:s.next=56;break;case 38:return s.next=40,Object(f.select)(M,"getCurrentPost");case 40:return i=s.sent,s.t5=H,s.t6=n,s.t7=i,s.next=46,Object(f.select)("core","getPostType",i.type);case 46:if(s.t8=s.sent,s.t9=e,s.t10={previousPost:s.t6,post:s.t7,postType:s.t8,options:s.t9},!(c=(0,s.t5)(s.t10)).length){s.next=53;break}return s.next=53,f.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(R.a)(c)));case 53:if(e.isAutosave){s.next=56;break}return s.next=56,Object(f.dispatch)("core/block-editor","__unstableMarkLastChangeAsPersistent");case 56:case"end":return s.stop()}}),ue)}function Ie(){var e,t,n,r;return C.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(f.select)(M,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(f.select)(M,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(f.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(f.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(f.dispatch)(M,"resetPost",r);case 14:case"end":return o.stop()}}),le)}function Ae(){var e,t,n;return C.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(f.select)(M,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(f.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(f.dispatch)("core/notices","removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,Object(f.select)(M,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(f.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(f.dispatch)(M,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,f.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(I.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),de,null,[[8,18]])}function Re(e){return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(f.dispatch)(M,"savePost",Object(p.a)({isAutosave:!0},e));case 2:case"end":return t.stop()}}),pe)}function Le(){var e,t,n,r;return C.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(f.select)(M,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(f.select)(M,"getEditedPostAttribute","title");case 5:return t=o.sent,o.next=8,Object(f.select)(M,"getEditedPostAttribute","content");case 8:return n=o.sent,o.next=11,Object(f.select)(M,"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()}}),be)}function Ne(){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.dispatch)("core","redo");case 2:case"end":return e.stop()}}),fe)}function Ue(){return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.dispatch)("core","undo");case 2:case"end":return e.stop()}}),he)}function De(){return{type:"CREATE_UNDO_LEVEL"}}function Fe(e){return{type:"UPDATE_POST_LOCK",lock:e}}function Me(e){return{type:"FETCH_REUSABLE_BLOCKS",id:e}}function Ve(e){return{type:"RECEIVE_REUSABLE_BLOCKS",results:e}}function ze(e){return{type:"SAVE_REUSABLE_BLOCK",id:e}}function He(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}function We(e,t){return{type:"UPDATE_REUSABLE_BLOCK",id:e,changes:t}}function Ke(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function Ge(e){return{type:"CONVERT_BLOCK_TO_REUSABLE",clientIds:Object(g.castArray)(e)}}function qe(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Ye(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Qe(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Xe(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function Ze(e){var t,n,r,i,c,a,s,u,l,d,p,b,h,m,v,O,g,j,y,_,k,E,S=arguments;return C.a.wrap((function(w){for(;;)switch(w.prev=w.next){case 0:return t=S.length>1&&void 0!==S[1]?S[1]:{},w.next=3,Object(f.select)("core/block-editor","__experimentalGetLastBlockAttributeChanges");case 3:if(!(n=w.sent)){w.next=36;break}r=new Set,i=new Set,c=0,a=Object.entries(n);case 8:if(!(c<a.length)){w.next=35;break}return s=Object(A.a)(a[c],2),u=s[0],l=s[1],w.next=12,Object(f.select)("core/block-editor","getBlockName",u);case 12:if(d=w.sent,!i.has(d)){w.next=15;break}return w.abrupt("continue",32);case 15:return i.add(d),w.next=18,Object(f.select)("core/blocks","getBlockType",d);case 18:p=w.sent,b=0,h=Object.entries(l);case 20:if(!(b<h.length)){w.next=32;break}if(m=Object(A.a)(h[b],2),v=m[0],O=m[1],p.attributes.hasOwnProperty(v)){w.next=24;break}return w.abrupt("continue",29);case 24:if(g=p.attributes[v],!(j=o[g.source])||!j.update){w.next=29;break}return w.delegateYield(j.update(g,O),"t0",28);case 28:r.add(j);case 29:b++,w.next=20;break;case 32:c++,w.next=8;break;case 35:return w.delegateYield(ge(Array.from(r)),"t1",36);case 36:return w.delegateYield(Oe(e),"t2",37);case 37:if(w.t3=w.t2,y={blocks:w.t3},!1===t.__unstableShouldCreateUndoLevel){w.next=55;break}return w.next=42,Object(f.select)(M,"getCurrentPost");case 42:return _=w.sent,k=_.id,E=_.type,w.next=47,Object(f.select)("core","getEditedEntityRecord","postType",E,k);case 47:if(w.t4=w.sent.blocks,w.t5=y.blocks,!(w.t4===w.t5)){w.next=54;break}return w.next=53,Object(f.dispatch)("core","__unstableCreateUndoLevel","postType",E,k);case 53:return w.abrupt("return",w.sent);case 54:y.content=function(e){var t=e.blocks;return Y(void 0===t?[]:t)};case 55:return w.delegateYield(Te(y),"t6",56);case 56:case"end":return w.stop()}}),me)}function Je(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var $e=function(e){return C.a.mark((function t(){var n,r,o,i=arguments;return C.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(N()("`wp.data.dispatch( 'core/editor' )."+e+"`",{alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`"}),n=i.length,r=new Array(n),o=0;o<n;o++)r[o]=i[o];return t.next=4,f.dispatch.apply(void 0,["core/block-editor",e].concat(r));case 4:case"end":return t.stop()}}),t)}))},et=$e("resetBlocks"),tt=$e("receiveBlocks"),nt=$e("updateBlock"),rt=$e("updateBlockAttributes"),ot=$e("selectBlock"),it=$e("startMultiSelect"),ct=$e("stopMultiSelect"),at=$e("multiSelect"),st=$e("clearSelectedBlock"),ut=$e("toggleSelection"),lt=$e("replaceBlocks"),dt=$e("replaceBlock"),pt=$e("moveBlocksDown"),bt=$e("moveBlocksUp"),ft=$e("moveBlockToPosition"),ht=$e("insertBlock"),mt=$e("insertBlocks"),vt=$e("showInsertionPoint"),Ot=$e("hideInsertionPoint"),gt=$e("setTemplateValidity"),jt=$e("synchronizeTemplate"),yt=$e("mergeBlocks"),_t=$e("removeBlocks"),kt=$e("removeBlock"),Et=$e("toggleBlockMode"),St=$e("startTyping"),wt=$e("stopTyping"),Pt=$e("enterFormattedText"),Ct=$e("exitFormattedText"),Tt=$e("insertDefaultBlock"),xt=$e("updateBlockListSettings"),Bt=n("pPDe"),It=n("FqII"),At=n("Mmq9"),Rt={},Lt=[],Nt=Object(b.createRegistrySelector)((function(e){return function(){return e("core").hasUndo()}})),Ut=Object(b.createRegistrySelector)((function(e){return function(){return e("core").hasRedo()}}));function Dt(e){return"auto-draft"===zt(e).status}function Ft(e){var t=qt(e);return"blocks"in t||"content"in t}var Mt=Object(b.createRegistrySelector)((function(e){return function(t){var n=Ht(t),r=Wt(t);return!!e("core").hasEditsForEntityRecord("postType",n,r)}}));function Vt(e){return!Mt(e)&&Dt(e)}var zt=Object(b.createRegistrySelector)((function(e){return function(t){var n=Wt(t),r=Ht(t),o=e("core").getRawEntityRecord("postType",r,n);return o||Rt}}));function Ht(e){return e.postType}function Wt(e){return e.postId}function Kt(e){return Object(g.get)(zt(e),["_links","version-history",0,"count"],0)}function Gt(e){return Object(g.get)(zt(e),["_links","predecessor-version",0,"id"],null)}var qt=Object(b.createRegistrySelector)((function(e){return function(t){var n=Ht(t),r=Wt(t);return e("core").getEntityRecordEdits("postType",n,r)||Rt}}));function Yt(e,t){switch(t){case"type":return Ht(e);case"id":return Wt(e);default:var n=zt(e);if(!n.hasOwnProperty(t))break;return _(n[t])}}function Qt(e,t){switch(t){case"content":return On(e)}var n=qt(e);return n.hasOwnProperty(t)?F.has(t)?function(e,t){var n=qt(e);return n.hasOwnProperty(t)?Object(p.a)({},Yt(e,t),n[t]):Yt(e,t)}(e,t):n[t]:Yt(e,t)}var Xt=Object(b.createRegistrySelector)((function(e){return function(t,n){if(Object(g.includes)(z,n)||"preview_link"===n){var r=Ht(t),o=Wt(t),i=Object(g.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(r,o,i);return c?_(c[n]):void 0}}}));function Zt(e){return"private"===Qt(e,"status")?"private":Qt(e,"password")?"password":"public"}function Jt(e){return"pending"===zt(e).status}function $t(e,t){var n=t||zt(e);return-1!==["publish","private"].indexOf(n.status)||"future"===n.status&&!Object(It.isInTheFuture)(new Date(Number(Object(It.getDate)(n.date))-6e4))}function en(e){return"future"===zt(e).status&&!$t(e)}function tn(e){var t=zt(e);return Mt(e)||-1===["publish","private","future"].indexOf(t.status)}function nn(e){return!ln(e)&&(!!Qt(e,"title")||!!Qt(e,"excerpt")||!rn(e))}function rn(e){var t=Un(e);if(t.length){if(t.length>1)return!1;var n=t[0].name;if(n!==Object(s.getDefaultBlockName)()&&n!==Object(s.getFreeformContentHandlerName)())return!1}return!On(e)}var on=Object(b.createRegistrySelector)((function(e){return function(t){if(!nn(t))return!1;if(Bn(t))return!1;var n=Ht(t),r=Wt(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(g.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!Ft(t)||["title","excerpt"].some((function(e){return _(c[e])!==Qt(t,e)}))))}})),cn=Object(b.createRegistrySelector)((function(e){return function(t){N()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Ht(t),r=Wt(t),o=Object(g.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(g.mapValues)(Object(g.pick)(i,z),_)}})),an=Object(b.createRegistrySelector)((function(e){return function(t){N()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=Ht(t),r=Wt(t),o=Object(g.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function sn(e){var t=Qt(e,"date"),n=new Date(Number(Object(It.getDate)(t))-6e4);return Object(It.isInTheFuture)(n)}function un(e){var t=Qt(e,"date"),n=Qt(e,"modified"),r=Qt(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&t===n}var ln=Object(b.createRegistrySelector)((function(e){return function(t){var n=Ht(t),r=Wt(t);return e("core").isSavingEntityRecord("postType",n,r)}})),dn=Object(b.createRegistrySelector)((function(e){return function(t){var n=Ht(t),r=Wt(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),pn=Object(b.createRegistrySelector)((function(e){return function(t){var n=Ht(t),r=Wt(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function bn(e){return!!ln(e)&&!!Object(g.get)(e.saving,["options","isAutosave"])}function fn(e){return!!ln(e)&&!!e.saving.options.isPreview}function hn(e){if(!e.saving.pending&&!ln(e)){var t=Xt(e,"preview_link");t||(t=Qt(e,"link"))&&(t=Object(At.addQueryArgs)(t,{preview:!0}));var n=Qt(e,"featured_media");return t&&n?Object(At.addQueryArgs)(t,{_thumbnail_id:n}):t}}function mn(e){var t,n=Un(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 vn(e){N()("`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(s.isUnmodifiedDefaultBlock)(t[0])?[]:t}var On=Object(b.createRegistrySelector)((function(e){return function(t){var n=Wt(t),r=Ht(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return Y(o.blocks);if(o.content)return o.content}return""}})),gn=Object(Bt.a)((function(e,t){var n=e.reusableBlocks.data[t];if(!n)return null;var r=isNaN(parseInt(t));return Object(p.a)({},n,{id:r?t:+t,isTemporary:r})}),(function(e,t){return[e.reusableBlocks.data[t]]}));function jn(e,t){return e.reusableBlocks.isSaving[t]||!1}function yn(e,t){return!!e.reusableBlocks.isFetching[t]}var _n=Object(Bt.a)((function(e){return Object(g.map)(e.reusableBlocks.data,(function(t,n){return gn(e,n)}))}),(function(e){return[e.reusableBlocks.data]}));function kn(e,t){var n=Object(g.find)(e.optimist,(function(e){return e.beforeState&&Object(g.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function En(e){if(!ln(e))return!1;if(!$t(e))return!1;var t=kn(e,"post-update");return!!t&&!$t(null,t.currentPost)}function Sn(e){var t=Qt(e,"permalink_template");return V.test(t)}function wn(e){var t=Pn(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return Sn(e)?n+r+o:n}function Pn(e){var t=Qt(e,"permalink_template");if(!t)return null;var n=Qt(e,"slug")||Qt(e,"generated_slug"),r=t.split(V),o=Object(A.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Cn(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Tn(e){return e.postLock.isLocked}function xn(e){return Object.keys(e.postSavingLock).length>0}function Bn(e){return Object.keys(e.postAutosavingLock).length>0}function In(e){return e.postLock.isTakeover}function An(e){return e.postLock.user}function Rn(e){return e.postLock.activePostLock}function Ln(e){return Object(g.has)(zt(e),["_links","wp:action-unfiltered-html"])}function Nn(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:j.isPublishSidebarEnabled}function Un(e){return Qt(e,"blocks")||Lt}function Dn(e){return e.isReady}function Fn(e){return e.editorSettings}function Mn(e){return Object(b.createRegistrySelector)((function(t){return function(n){var r;N()("`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;c<o;c++)i[c-1]=arguments[c];return(r=t("core/block-editor"))[e].apply(r,i)}}))}var Vn=Mn("getBlockName"),zn=Mn("isBlockValid"),Hn=Mn("getBlockAttributes"),Wn=Mn("getBlock"),Kn=Mn("getBlocks"),Gn=Mn("__unstableGetBlockWithoutInnerBlocks"),qn=Mn("getClientIdsOfDescendants"),Yn=Mn("getClientIdsWithDescendants"),Qn=Mn("getGlobalBlockCount"),Xn=Mn("getBlocksByClientId"),Zn=Mn("getBlockCount"),Jn=Mn("getBlockSelectionStart"),$n=Mn("getBlockSelectionEnd"),er=Mn("getSelectedBlockCount"),tr=Mn("hasSelectedBlock"),nr=Mn("getSelectedBlockClientId"),rr=Mn("getSelectedBlock"),or=Mn("getBlockRootClientId"),ir=Mn("getBlockHierarchyRootClientId"),cr=Mn("getAdjacentBlockClientId"),ar=Mn("getPreviousBlockClientId"),sr=Mn("getNextBlockClientId"),ur=Mn("getSelectedBlocksInitialCaretPosition"),lr=Mn("getMultiSelectedBlockClientIds"),dr=Mn("getMultiSelectedBlocks"),pr=Mn("getFirstMultiSelectedBlockClientId"),br=Mn("getLastMultiSelectedBlockClientId"),fr=Mn("isFirstMultiSelectedBlock"),hr=Mn("isBlockMultiSelected"),mr=Mn("isAncestorMultiSelected"),vr=Mn("getMultiSelectedBlocksStartClientId"),Or=Mn("getMultiSelectedBlocksEndClientId"),gr=Mn("getBlockOrder"),jr=Mn("getBlockIndex"),yr=Mn("isBlockSelected"),_r=Mn("hasSelectedInnerBlock"),kr=Mn("isBlockWithinSelection"),Er=Mn("hasMultiSelection"),Sr=Mn("isMultiSelecting"),wr=Mn("isSelectionEnabled"),Pr=Mn("getBlockMode"),Cr=Mn("isTyping"),Tr=Mn("isCaretWithinFormattedText"),xr=Mn("getBlockInsertionPoint"),Br=Mn("isBlockInsertionPointVisible"),Ir=Mn("isValidTemplate"),Ar=Mn("getTemplate"),Rr=Mn("getTemplateLock"),Lr=Mn("canInsertBlockType"),Nr=Mn("getInserterItems"),Ur=Mn("hasInserterItems"),Dr=Mn("getBlockListSettings"),Fr=function(){var e=Object(T.a)(C.a.mark((function e(t,n){var r,o,i,c,a;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,o=n.dispatch,e.next=4,B()({path:"/wp/v2/types/wp_block"});case 4:if(i=e.sent){e.next=7;break}return e.abrupt("return");case 7:if(e.prev=7,!r){e.next=15;break}return e.next=11,B()({path:"/wp/v2/".concat(i.rest_base,"/").concat(r)});case 11:e.t0=e.sent,c=[e.t0],e.next=18;break;case 15:return e.next=17,B()({path:"/wp/v2/".concat(i.rest_base,"?per_page=-1")});case 17:c=e.sent;case 18:(a=Object(g.compact)(Object(g.map)(c,(function(e){return"publish"!==e.status||e.content.protected?null:Object(p.a)({},e,{content:e.content.raw,title:e.title.raw})})))).length&&o(Ve(a)),o({type:"FETCH_REUSABLE_BLOCKS_SUCCESS",id:r}),e.next=26;break;case 23:e.prev=23,e.t1=e.catch(7),o({type:"FETCH_REUSABLE_BLOCKS_FAILURE",id:r,error:e.t1});case 26:case"end":return e.stop()}}),e,null,[[7,23]])})));return function(t,n){return e.apply(this,arguments)}}(),Mr=function(){var e=Object(T.a)(C.a.mark((function e(t,n){var r,o,i,c,a,s,u,l,d,p,f,h,m;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B()({path:"/wp/v2/types/wp_block"});case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:return o=t.id,i=n.dispatch,c=n.getState(),a=gn(c,o),s=a.title,u=a.content,l=a.isTemporary,d=l?{title:s,content:u,status:"publish"}:{id:o,title:s,content:u,status:"publish"},p=l?"/wp/v2/".concat(r.rest_base):"/wp/v2/".concat(r.rest_base,"/").concat(o),f=l?"POST":"PUT",e.prev=12,e.next=15,B()({path:p,data:d,method:f});case 15:h=e.sent,i({type:"SAVE_REUSABLE_BLOCK_SUCCESS",updatedId:h.id,id:o}),m=l?Object(I.__)("Block created."):Object(I.__)("Block updated."),Object(b.dispatch)("core/notices").createSuccessNotice(m,{id:"REUSABLE_BLOCK_NOTICE_ID",type:"snackbar"}),Object(b.dispatch)("core/block-editor").__unstableSaveReusableBlock(o,h.id),e.next=26;break;case 22:e.prev=22,e.t0=e.catch(12),i({type:"SAVE_REUSABLE_BLOCK_FAILURE",id:o}),Object(b.dispatch)("core/notices").createErrorNotice(e.t0.message,{id:"REUSABLE_BLOCK_NOTICE_ID"});case 26:case"end":return e.stop()}}),e,null,[[12,22]])})));return function(t,n){return e.apply(this,arguments)}}(),Vr=function(){var e=Object(T.a)(C.a.mark((function e(t,n){var r,o,i,c,a,u,l,d,p,f;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B()({path:"/wp/v2/types/wp_block"});case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:if(o=t.id,i=n.getState,c=n.dispatch,(a=gn(i(),o))&&!a.isTemporary){e.next=10;break}return e.abrupt("return");case 10:return u=Object(b.select)("core/block-editor").getBlocks(),l=u.filter((function(e){return Object(s.isReusableBlock)(e)&&e.attributes.ref===o})),d=l.map((function(e){return e.clientId})),p=Object(g.uniqueId)(),c({type:"REMOVE_REUSABLE_BLOCK",id:o,optimist:{type:v.BEGIN,id:p}}),d.length&&Object(b.dispatch)("core/block-editor").removeBlocks(d),e.prev=16,e.next=19,B()({path:"/wp/v2/".concat(r.rest_base,"/").concat(o),method:"DELETE"});case 19:c({type:"DELETE_REUSABLE_BLOCK_SUCCESS",id:o,optimist:{type:v.COMMIT,id:p}}),f=Object(I.__)("Block deleted."),Object(b.dispatch)("core/notices").createSuccessNotice(f,{id:"REUSABLE_BLOCK_NOTICE_ID",type:"snackbar"}),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(16),c({type:"DELETE_REUSABLE_BLOCK_FAILURE",id:o,optimist:{type:v.REVERT,id:p}}),Object(b.dispatch)("core/notices").createErrorNotice(e.t0.message,{id:"REUSABLE_BLOCK_NOTICE_ID"});case 28:case"end":return e.stop()}}),e,null,[[16,24]])})));return function(t,n){return e.apply(this,arguments)}}(),zr={FETCH_REUSABLE_BLOCKS:function(e,t){Fr(e,t)},SAVE_REUSABLE_BLOCK:function(e,t){Mr(e,t)},DELETE_REUSABLE_BLOCK:function(e,t){Vr(e,t)},CONVERT_BLOCK_TO_STATIC:function(e,t){var n=t.getState(),r=Object(b.select)("core/block-editor").getBlock(e.clientId),o=gn(n,r.attributes.ref),i=Object(s.parse)(o.content);Object(b.dispatch)("core/block-editor").replaceBlocks(r.clientId,i)},CONVERT_BLOCK_TO_REUSABLE:function(e,t){var n=t.dispatch,r={id:Object(g.uniqueId)("reusable"),title:Object(I.__)("Untitled Reusable Block"),content:Object(s.serialize)(Object(b.select)("core/block-editor").getBlocksByClientId(e.clientIds))};n(Ve([r])),n(ze(r.id)),Object(b.dispatch)("core/block-editor").replaceBlocks(e.clientIds,Object(s.createBlock)("core/block",{ref:r.id}))}};var Hr=function(e){var t=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},n={getState:e.getState,dispatch:function(){return t.apply(void 0,arguments)}};return t=w()(zr)(n)(e.dispatch),e.dispatch=t,e},Wr={reducer:E,selectors:c,actions:i,controls:Object(p.a)({},f.controls,Z)},Kr=Object(b.registerStore)(M,Object(p.a)({},Wr,{persist:["preferences"]}));Hr(Kr);var Gr=n("g56x"),qr=n("GRId");function Yr(){return Object(b.select)("core/block-editor").getBlockInsertionPoint().rootClientId}function Qr(e){return Object(b.select)("core/block-editor").getInserterItems(e)}function Xr(){var e=Object(b.select)("core/block-editor"),t=e.getSelectedBlockClientId,n=e.getBlockName,r=t();return r?n(r):null}var Zr=Object(g.once)((function(){Object(b.dispatch)("core/editor").__experimentalFetchReusableBlocks()}));var Jr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?Yr:t,r=e.getInserterItems,o=void 0===r?Qr:r,i=e.getSelectedBlockName,c=void 0===i?Xr:i;return{name:"blocks",className:"editor-autocompleters__block",triggerPrefix:"/",options:function(){Zr();var e=c();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(qr.createElement)(a.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(s.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),$r={name:"users",className:"editor-autocompleters__user",triggerPrefix:"@",options:function(e){var t="";return e&&(t="?search="+encodeURIComponent(e)),B()({path:"/wp/v2/users"+t})},isDebounced:!0,getOptionKeywords:function(e){return[e.slug,e.name]},getOptionLabel:function(e){return[Object(qr.createElement)("img",{key:"avatar",className:"editor-autocompleters__user-avatar",alt:"",src:e.avatar_urls[24]}),Object(qr.createElement)("span",{key:"name",className:"editor-autocompleters__user-name"},e.name),Object(qr.createElement)("span",{key:"slug",className:"editor-autocompleters__user-slug"},e.slug)]},getOptionCompletion:function(e){return"@".concat(e.slug)}},eo=n("1OyB"),to=n("vuIU"),no=n("md7G"),ro=n("foSv"),oo=n("Ji7U"),io=n("K9lf"),co=function(e){function t(){return Object(eo.a)(this,t),Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))}return Object(oo.a)(t,e),Object(to.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}(qr.Component),ao=Object(io.compose)([Object(b.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(b.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(co),so=n("TSYQ"),uo=n.n(so),lo=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.path,i=void 0===o?[]:o,c=e.href,s=e.onSelect;return Object(qr.createElement)("li",{className:uo()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(qr.createElement)("a",{href:c,className:"document-outline__button",onClick:s},Object(qr.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),i.map((function(e,t){var n=e.clientId;return Object(qr.createElement)("strong",{key:t,className:"document-outline__level"},Object(qr.createElement)(a.BlockTitle,{clientId:n}))})),Object(qr.createElement)("strong",{className:"document-outline__level"},r),Object(qr.createElement)("span",{className:"document-outline__item-content"},t)))},po=Object(qr.createElement)("em",null,Object(I.__)("(Empty heading)")),bo=[Object(qr.createElement)("br",{key:"incorrect-break"}),Object(qr.createElement)("em",{key:"incorrect-message"},Object(I.__)("(Incorrect heading level)"))],fo=[Object(qr.createElement)("br",{key:"incorrect-break-h1"}),Object(qr.createElement)("em",{key:"incorrect-message-h1"},Object(I.__)("(Your theme may already use a H1 for the post title)"))],ho=[Object(qr.createElement)("br",{key:"incorrect-break-multiple-h1"}),Object(qr.createElement)("em",{key:"incorrect-message-multiple-h1"},Object(I.__)("(Multiple H1 headings are not recommended)"))],mo=function(e){return!e.attributes.content||0===e.attributes.content.length},vo=Object(io.compose)(Object(b.withSelect)((function(e){var t=e("core/block-editor").getBlocks,n=e("core/editor").getEditedPostAttribute,r=(0,e("core").getPostType)(n("type"));return{title:n("title"),blocks:t(),isTitleSupported:Object(g.get)(r,["supports","title"],!1)}})))((function(e){var t=e.blocks,n=void 0===t?[]:t,r=e.title,o=e.onSelect,i=e.isTitleSupported,c=e.hasOutlineItemsDisabled,a=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(g.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Object(p.a)({},t,{path:n,level:t.attributes.level,isEmpty:mo(t)}):e(t.innerBlocks,[].concat(Object(R.a)(n),[t]))}))}(n);if(a.length<1)return null;var s=1,u=document.querySelector(".editor-post-title__input"),d=i&&r&&u,b=Object(g.countBy)(a,"level")[1]>1;return Object(qr.createElement)("div",{className:"document-outline"},Object(qr.createElement)("ul",null,d&&Object(qr.createElement)(lo,{level:Object(I.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(u.id),isDisabled:c},r),a.map((function(e,t){var n=e.level>s+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(b||d));return s=e.level,Object(qr.createElement)(lo,{key:t,level:"H".concat(e.level),isValid:r,path:e.path,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?po:Object(l.getTextContent)(Object(l.create)({html:e.attributes.content})),n&&bo,1===e.level&&b&&ho,d&&1===e.level&&!b&&fo)}))))}));var Oo=Object(b.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(g.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n})),go=n("JX7q"),jo=n("tI+e"),yo=n("RxS6");var _o=Object(io.compose)([Object(b.withSelect)((function(e){return{isDirty:(0,e("core/editor").isEditedPostDirty)()}})),Object(b.withDispatch)((function(e,t,n){var r=n.select,o=e("core/editor").savePost;return{onSave:function(){(0,r("core/editor").isEditedPostDirty)()&&o()}}}))])((function(e){var t=e.onSave;return Object(qr.createElement)(jo.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(h.a)({},yo.rawShortcut.primary("s"),(function(e){e.preventDefault(),t()}))})})),ko=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).undoOrRedo=e.undoOrRedo.bind(Object(go.a)(e)),e}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"undoOrRedo",value:function(e){var t=this.props,n=t.onRedo,r=t.onUndo;e.shiftKey?n():r(),e.preventDefault()}},{key:"render",value:function(){var e;return Object(qr.createElement)(qr.Fragment,null,Object(qr.createElement)(a.BlockEditorKeyboardShortcuts,null),Object(qr.createElement)(jo.KeyboardShortcuts,{shortcuts:(e={},Object(h.a)(e,yo.rawShortcut.primary("z"),this.undoOrRedo),Object(h.a)(e,yo.rawShortcut.primaryShift("z"),this.undoOrRedo),e)}),Object(qr.createElement)(_o,null))}}]),t}(qr.Component),Eo=Object(b.withDispatch)((function(e){var t=e("core/editor");return{onRedo:t.redo,onUndo:t.undo}}))(ko),So=Eo;function wo(){return N()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(qr.createElement)(Eo,null)}function Po(){return Object(qr.createElement)(_o,null)}var Co=Object(io.compose)([Object(b.withSelect)((function(e){return{hasRedo:e("core/editor").hasEditorRedo()}})),Object(b.withDispatch)((function(e){return{redo:e("core/editor").redo}}))])((function(e){var t=e.hasRedo,n=e.redo;return Object(qr.createElement)(jo.IconButton,{icon:"redo",label:Object(I.__)("Redo"),shortcut:yo.displayShortcut.primaryShift("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__redo"})}));var To=Object(io.compose)([Object(b.withSelect)((function(e){return{hasUndo:e("core/editor").hasEditorUndo()}})),Object(b.withDispatch)((function(e){return{undo:e("core/editor").undo}}))])((function(e){var t=e.hasUndo,n=e.undo;return Object(qr.createElement)(jo.IconButton,{icon:"undo",label:Object(I.__)("Undo"),shortcut:yo.displayShortcut.primary("z"),"aria-disabled":!t,onClick:t?n:void 0,className:"editor-history__undo"})})),xo=n("Ff2n");var Bo=Object(io.compose)([Object(b.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(b.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(xo.a)(e,["isValid"]);return t?null:Object(qr.createElement)(jo.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning"},Object(qr.createElement)("p",null,Object(I.__)("The content of your post doesn’t match the template assigned to your post type.")),Object(qr.createElement)("div",null,Object(qr.createElement)(jo.Button,{isDefault:!0,onClick:n.resetTemplateValidity},Object(I.__)("Keep it as is")),Object(qr.createElement)(jo.Button,{onClick:function(){window.confirm(Object(I.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0},Object(I.__)("Reset the template"))))}));var Io=Object(io.compose)([Object(b.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(b.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(g.filter)(t,{isDismissible:!0,type:"default"}),o=Object(g.filter)(t,{isDismissible:!1,type:"default"}),i=Object(g.filter)(t,{type:"snackbar"});return Object(qr.createElement)(qr.Fragment,null,Object(qr.createElement)(jo.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(qr.createElement)(jo.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(qr.createElement)(Bo,null)),Object(qr.createElement)(jo.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),Ao=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.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(oo.a)(t,e),Object(to.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(b.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(qr.createElement)(a.Warning,{className:"editor-error-boundary",actions:[Object(qr.createElement)(jo.Button,{key:"recovery",onClick:this.reboot,isLarge:!0},Object(I.__)("Attempt Recovery")),Object(qr.createElement)(jo.ClipboardButton,{key:"copy-post",text:this.getContent,isLarge:!0},Object(I.__)("Copy Post Text")),Object(qr.createElement)(jo.ClipboardButton,{key:"copy-error",text:e.stack,isLarge:!0},Object(I.__)("Copy Error"))]},Object(I.__)("The editor has encountered an unexpected error.")):this.props.children}}]),t}(qr.Component),Ro=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,Lo=Object(g.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function No(){var e=Object(b.useSelect)((function(e){var t=e("core/editor").getCurrentPostId(),n=e("core/editor").getCurrentPostType(),r=e("core").getCurrentUser();return{postId:t,getEditedPostAttribute:e("core/editor").getEditedPostAttribute,remoteAutosave:e("core").getAutosave(n,t,r.id),hasFetchedAutosave:e("core").hasFetchedAutosaves(n,t)&&r.id}})),t=e.postId,n=e.getEditedPostAttribute,r=e.remoteAutosave,o=e.hasFetchedAutosave,i=Object(b.useDispatch)("core/notices"),c=i.createWarningNotice,a=i.removeNotice,u=Object(b.useDispatch)("core/editor"),l=u.editPost,d=u.resetEditorBlocks;Object(qr.useEffect)((function(){if(o){var e=function(e){return window.sessionStorage.getItem(Q(e))}(t);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,u={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(u).some((function(e){return u[e]!==n(e)}))){if(!r){var p=Object(g.uniqueId)("wpEditorAutosaveRestore");c(Object(I.__)("The backup of this post in your browser is different from the version below."),{id:p,actions:[{label:Object(I.__)("Restore the backup"),onClick:function(){l(Object(g.omit)(u,["content"])),d(Object(s.parse)(u.content)),a(p)}}]})}}else X(t)}}}),[t,o])}var Uo=Object(io.ifCondition)(Lo)((function(){var e,t,n,r,o,i,c,a=Object(b.useDispatch)("core/editor").__experimentalLocalAutosave,s=Object(qr.useCallback)((function(){Ro(a)}),[]);No(),e=Object(b.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),postType:e("core/editor").getCurrentPostType(),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(qr.useRef)(n),c=Object(qr.useRef)(r),Object(qr.useEffect)((function(){!o&&(c.current&&!r||i.current&&!n)&&X(t),i.current=n,c.current=r}),[n,r,o]);var u=Object(b.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}})).localAutosaveInterval;return Object(qr.createElement)(ao,{interval:u,autosave:s,shouldThrottle:!0})}));var Do=Object(b.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(g.get)(n,["supports","page-attributes"],!1)&&Object(g.isEmpty)(t)?null:r}));var Fo=Object(b.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(g.some)(Object(g.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),Mo=Object(io.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(qr.createElement)(jo.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(I.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(g.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Vo=Object(io.compose)([Object(b.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(b.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(qr.createElement)(Fo,{supportKeys:"page-attributes"},Object(qr.createElement)(Mo,e))}));function zo(e){var t=e.map((function(e){return Object(p.a)({children:[],parent:null},e)})),n=Object(g.groupBy)(t,"parent");if(n.null&&n.null.length)return t;return function e(t){return t.map((function(t){var r=n[t.id];return Object(p.a)({},t,{children:r&&r.length?e(r):[]})}))}(n[0]||[])}var Ho=Object(b.withSelect)((function(e){var t=e("core"),n=t.getPostType,r=t.getEntityRecords,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("type"),s=n(a),u=i(),l=Object(g.get)(s,["hierarchical"],!1),d={per_page:-1,exclude:u,parent_exclude:u,orderby:"menu_order",order:"asc"};return{parent:c("parent"),items:l?r("postType",a,d):[],postType:s}})),Wo=Object(b.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateParent:function(e){t({parent:e||0})}}})),Ko=Object(io.compose)([Ho,Wo])((function(e){var t=e.parent,n=e.postType,r=e.items,o=e.onUpdateParent,i=Object(g.get)(n,["hierarchical"],!1),c=Object(g.get)(n,["labels","parent_item_colon"]),a=r||[];if(!i||!c||!a.length)return null;var s=zo(a.map((function(e){return{id:e.id,parent:e.parent,name:e.title.raw?e.title.raw:"#".concat(e.id," (").concat(Object(I.__)("no title"),")")}})));return Object(qr.createElement)(jo.TreeSelect,{className:"editor-page-attributes__parent",label:c,noOptionLabel:"(".concat(Object(I.__)("no parent"),")"),tree:s,selectedId:t,onChange:o})}));var Go=Object(io.compose)(Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(b.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}})))((function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(g.isEmpty)(t)?null:Object(qr.createElement)(jo.SelectControl,{label:Object(I.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(g.map)(t,(function(e,t){return{value:t,label:e}}))})})),qo=n("rmEH");var Yo=Object(io.compose)([Object(b.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(g.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}})),io.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||n.length<2?null:Object(qr.createElement)(Fo,{supportKeys:"author"},r)})),Qo=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).setAuthorId=e.setAuthorId.bind(Object(go.a)(e)),e}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"setAuthorId",value:function(e){var t=this.props.onUpdateAuthor,n=e.target.value;t(Number(n))}},{key:"render",value:function(){var e=this.props,t=e.postAuthor,n=e.instanceId,r=e.authors,o="post-author-selector-"+n;return Object(qr.createElement)(Yo,null,Object(qr.createElement)("label",{htmlFor:o},Object(I.__)("Author")),Object(qr.createElement)("select",{id:o,value:t,onChange:this.setAuthorId,className:"editor-post-author__select"},r.map((function(e){return Object(qr.createElement)("option",{key:e.id,value:e.id},Object(qo.decodeEntities)(e.name))}))))}}]),t}(qr.Component),Xo=Object(io.compose)([Object(b.withSelect)((function(e){return{postAuthor:e("core/editor").getEditedPostAttribute("author"),authors:e("core").getAuthors()}})),Object(b.withDispatch)((function(e){return{onUpdateAuthor:function(t){e("core/editor").editPost({author:t})}}})),io.withInstanceId])(Qo);var Zo=Object(io.compose)([Object(b.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(b.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object(xo.a)(e,["commentStatus"]);return Object(qr.createElement)(jo.CheckboxControl,{label:Object(I.__)("Allow Comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var Jo=Object(io.compose)([Object(b.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(b.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(qr.createElement)("div",{className:"editor-post-excerpt"},Object(qr.createElement)(jo.TextareaControl,{label:Object(I.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(qr.createElement)(jo.ExternalLink,{href:Object(I.__)("https://codex.wordpress.org/Excerpt")},Object(I.__)("Learn more about manual excerpts")))})),$o=n("wx14");var ei=function(e){return Object(qr.createElement)(Fo,Object($o.a)({},e,{supportKeys:"excerpt"}))};var ti=Object(b.withSelect)((function(e){var t=e("core").getThemeSupports;return{postType:(0,e("core/editor").getEditedPostAttribute)("type"),themeSupports:t()}}))((function(e){var t=e.themeSupports,n=e.children,r=e.postType,o=e.supportKeys;return Object(g.some)(Object(g.castArray)(o),(function(e){var n=Object(g.get)(t,[e],!1);return"post-thumbnails"===e&&Object(g.isArray)(n)?Object(g.includes)(n,r):n}))?n:null}));var ni=function(e){return Object(qr.createElement)(ti,{supportKeys:"post-thumbnails"},Object(qr.createElement)(Fo,Object($o.a)({},e,{supportKeys:"thumbnail"})))},ri=["image"],oi=Object(I.__)("Featured Image"),ii=Object(I.__)("Set Featured Image"),ci=Object(I.__)("Remove Image");var ai=Object(b.withSelect)((function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(c("type")),featuredImageId:a}})),si=Object(b.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateImage:function(e){t({featured_media:e.id})},onRemoveImage:function(){t({featured_media:0})}}})),ui=Object(io.compose)(ai,si,Object(jo.withFilters)("editor.PostFeaturedImage"))((function(e){var t,n,r,o=e.currentPostId,i=e.featuredImageId,c=e.onUpdateImage,s=e.onRemoveImage,u=e.media,l=e.postType,d=Object(g.get)(l,["labels"],{}),p=Object(qr.createElement)("p",null,Object(I.__)("To edit the featured image, you need permission to upload media."));if(u){var b=Object(Gr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",u.id,o);Object(g.has)(u,["media_details","sizes",b])?(t=u.media_details.sizes[b].width,n=u.media_details.sizes[b].height,r=u.media_details.sizes[b].source_url):(t=u.media_details.width,n=u.media_details.height,r=u.source_url)}return Object(qr.createElement)(ni,null,Object(qr.createElement)("div",{className:"editor-post-featured-image"},Object(qr.createElement)(a.MediaUploadCheck,{fallback:p},Object(qr.createElement)(a.MediaUpload,{title:d.featured_image||oi,onSelect:c,unstableFeaturedImageFlow:!0,allowedTypes:ri,modalClass:"editor-post-featured-image__media-modal",render:function(e){var o=e.open;return Object(qr.createElement)(jo.Button,{className:i?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:o,"aria-label":i?Object(I.__)("Edit or update the image"):null},!!i&&u&&Object(qr.createElement)(jo.ResponsiveWrapper,{naturalWidth:t,naturalHeight:n,isInline:!0},Object(qr.createElement)("img",{src:r,alt:""})),!!i&&!u&&Object(qr.createElement)(jo.Spinner,null),!i&&(d.set_featured_image||ii))},value:i})),!!i&&u&&!u.isLoading&&Object(qr.createElement)(a.MediaUploadCheck,null,Object(qr.createElement)(a.MediaUpload,{title:d.featured_image||oi,onSelect:c,unstableFeaturedImageFlow:!0,allowedTypes:ri,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(qr.createElement)(jo.Button,{onClick:t,isDefault:!0,isLarge:!0},Object(I.__)("Replace Image"))}})),!!i&&Object(qr.createElement)(a.MediaUploadCheck,null,Object(qr.createElement)(jo.Button,{onClick:s,isLink:!0,isDestructive:!0},d.remove_featured_image||ci))))}));var li=Object(b.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object(xo.a)(e,["disablePostFormats"]);return!t&&Object(qr.createElement)(Fo,Object($o.a)({},n,{supportKeys:"post-formats"}))})),di=[{id:"aside",caption:Object(I.__)("Aside")},{id:"gallery",caption:Object(I.__)("Gallery")},{id:"link",caption:Object(I.__)("Link")},{id:"image",caption:Object(I.__)("Image")},{id:"quote",caption:Object(I.__)("Quote")},{id:"standard",caption:Object(I.__)("Standard")},{id:"status",caption:Object(I.__)("Status")},{id:"video",caption:Object(I.__)("Video")},{id:"audio",caption:Object(I.__)("Audio")},{id:"chat",caption:Object(I.__)("Chat")}];var pi=Object(io.compose)([Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:o,supportedFormats:Object(g.union)([o],Object(g.get)(i,["formats"],[])),suggestedFormat:r()}})),Object(b.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),io.withInstanceId])((function(e){var t=e.onUpdatePostFormat,n=e.postFormat,r=void 0===n?"standard":n,o=e.supportedFormats,i=e.suggestedFormat,c="post-format-selector-"+e.instanceId,a=di.filter((function(e){return Object(g.includes)(o,e.id)})),s=Object(g.find)(a,(function(e){return e.id===i}));return Object(qr.createElement)(li,null,Object(qr.createElement)("div",{className:"editor-post-format"},Object(qr.createElement)("div",{className:"editor-post-format__content"},Object(qr.createElement)("label",{htmlFor:c},Object(I.__)("Post Format")),Object(qr.createElement)(jo.SelectControl,{value:r,onChange:function(e){return t(e)},id:c,options:a.map((function(e){return{label:e.caption,value:e.id}}))})),s&&s.id!==r&&Object(qr.createElement)("div",{className:"editor-post-format__suggestion"},Object(I.__)("Suggestion:")," ",Object(qr.createElement)(jo.Button,{isLink:!0,onClick:function(){return t(s.id)}},s.caption))))}));var bi=Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount,r=e.children;return!t||n<2?null:Object(qr.createElement)(Fo,{supportKeys:"revisions"},r)}));function fi(e,t){return Object(At.addQueryArgs)(e,t)}function hi(e){return e?Object(g.toLower)(Object(g.deburr)(Object(g.trim)(e.replace(/[\s\./_]+/g,"-"),"-"))):""}var mi=Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount;return Object(qr.createElement)(bi,null,Object(qr.createElement)(jo.IconButton,{href:fi("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:"backup"},Object(I.sprintf)(Object(I._n)("%d Revision","%d Revisions",n),n)))}));var vi=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).openPreviewWindow=e.openPreviewWindow.bind(Object(go.a)(e)),e}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&!e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&!t.closed&&(t.location=e)}},{key:"getWindowTarget",value:function(){var e=this.props.postId;return"wp-preview-".concat(e)}},{key:"openPreviewWindow",value:function(e){var t,n;(e.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),t=this.previewWindow.document,n=Object(qr.renderToString)(Object(qr.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(qr.createElement)(jo.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(qr.createElement)(jo.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),Object(qr.createElement)(jo.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})),Object(qr.createElement)("p",null,Object(I.__)("Generating preview…")))),n+='\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\twidth: 100vw;\n\t\t\t}\n\t\t\t@-webkit-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-moz-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@-o-keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@keyframes paint {\n\t\t\t\t0% {\n\t\t\t\t\tstroke-dashoffset: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg {\n\t\t\t\twidth: 192px;\n\t\t\t\theight: 192px;\n\t\t\t\tstroke: #555d66;\n\t\t\t\tstroke-width: 0.75;\n\t\t\t}\n\t\t\t.editor-post-preview-button__interstitial-message svg .outer,\n\t\t\t.editor-post-preview-button__interstitial-message svg .inner {\n\t\t\t\tstroke-dasharray: 280;\n\t\t\t\tstroke-dashoffset: 280;\n\t\t\t\t-webkit-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-moz-animation: paint 1.5s ease infinite alternate;\n\t\t\t\t-o-animation: paint 1.5s ease infinite alternate;\n\t\t\t\tanimation: paint 1.5s ease infinite alternate;\n\t\t\t}\n\t\t\tp {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\t\t}\n\t\t</style>\n\t',n=Object(Gr.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(I.__)("Generating preview…"),t.close()):this.setPreviewWindowLink(e.target.href)}},{key:"render",value:function(){var e=this.props,t=e.previewLink,n=e.currentPostLink,r=e.isSaveable,o=t||n;return Object(qr.createElement)(jo.Button,{isLarge:!0,className:"editor-post-preview",href:o,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow},Object(I._x)("Preview","imperative verb"),Object(qr.createElement)("span",{className:"screen-reader-text"},Object(I.__)("(opens in a new tab)")),Object(qr.createElement)(u.DotTip,{tipId:"core/editor.preview"},Object(I.__)("Click “Preview†to load a preview of this page, so you can make sure you’re happy with your blocks.")))}}]),t}(qr.Component),Oi=Object(io.compose)([Object(b.withSelect)((function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,s=o.isEditedPostSaveable,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=e("core").getPostType,p=l(),b=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||u(),isViewable:Object(g.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(b.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(io.ifCondition)((function(e){return e.isViewable}))])(vi),gi=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).sendPostLock=e.sendPostLock.bind(Object(go.a)(e)),e.receivePostLock=e.receivePostLock.bind(Object(go.a)(e)),e.releasePostLock=e.releasePostLock.bind(Object(go.a)(e)),e}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"componentDidMount",value:function(){var e=this.getHookName();Object(Gr.addAction)("heartbeat.send",e,this.sendPostLock),Object(Gr.addAction)("heartbeat.tick",e,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var e=this.getHookName();Object(Gr.removeAction)("heartbeat.send",e),Object(Gr.removeAction)("heartbeat.tick",e)}},{key:"getHookName",value:function(){return"core/editor/post-locked-modal-"+this.props.instanceId}},{key:"sendPostLock",value:function(e){var t=this.props,n=t.isLocked,r=t.activePostLock,o=t.postId;n||(e["wp-refresh-post-lock"]={lock:r,post_id:o})}},{key:"receivePostLock",value:function(e){if(e["wp-refresh-post-lock"]){var t=this.props,n=t.autosave,r=t.updatePostLock,o=e["wp-refresh-post-lock"];o.lock_error?(n(),r({isLocked:!0,isTakeover:!0,user:{avatar:o.lock_error.avatar_src}})):o.new_lock&&r({isLocked:!1,activePostLock:o.new_lock})}}},{key:"releasePostLock",value:function(){var e=this.props,t=e.isLocked,n=e.activePostLock,r=e.postLockUtils,o=e.postId;if(!t&&n){var i=new window.FormData;if(i.append("action","wp-remove-post-lock"),i.append("_wpnonce",r.unlockNonce),i.append("post_ID",o),i.append("active_post_lock",n),window.navigator.sendBeacon)window.navigator.sendBeacon(r.ajaxUrl,i);else{var c=new window.XMLHttpRequest;c.open("POST",r.ajaxUrl,!1),c.send(i)}}}},{key:"render",value:function(){var e=this.props,t=e.user,n=e.postId,r=e.isLocked,o=e.isTakeover,i=e.postLockUtils,c=e.postType;if(!r)return null;var a=t.name,s=t.avatar,u=Object(At.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),l=fi("edit.php",{post_type:Object(g.get)(c,["slug"])}),d=Object(I.__)("Exit the Editor");return Object(qr.createElement)(jo.Modal,{title:o?Object(I.__)("Someone else has taken over this post."):Object(I.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissable:!1,className:"editor-post-locked-modal"},!!s&&Object(qr.createElement)("img",{src:s,alt:Object(I.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(qr.createElement)("div",null,Object(qr.createElement)("div",null,a?Object(I.sprintf)(Object(I.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),a):Object(I.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(qr.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(qr.createElement)(jo.Button,{isPrimary:!0,isLarge:!0,href:l},d))),!o&&Object(qr.createElement)("div",null,Object(qr.createElement)("div",null,a?Object(I.sprintf)(Object(I.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(I.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(qr.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(qr.createElement)(jo.Button,{isDefault:!0,isLarge:!0,href:l},d),Object(qr.createElement)(Oi,null),Object(qr.createElement)(jo.Button,{isPrimary:!0,isLarge:!0,href:u},Object(I.__)("Take Over")))))}}]),t}(qr.Component),ji=Object(io.compose)(Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.isPostLocked,r=t.isPostLockTakeover,o=t.getPostLockUser,i=t.getCurrentPostId,c=t.getActivePostLock,a=t.getEditedPostAttribute,s=t.getEditorSettings,u=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:s().postLockUtils,activePostLock:c(),postType:u(a("type"))}})),Object(b.withDispatch)((function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}})),io.withInstanceId,Object(io.withGlobalEvents)({beforeunload:"releasePostLock"}))(gi);var yi=Object(io.compose)(Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(g.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}})))((function(e){var t=e.hasPublishAction,n=e.isPublished,r=e.children;return n||!t?null:r}));var _i=Object(io.compose)(Object(b.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(b.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(qr.createElement)(yi,null,Object(qr.createElement)(jo.CheckboxControl,{label:Object(I.__)("Pending Review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var ki=Object(io.compose)([Object(b.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(b.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object(xo.a)(e,["pingStatus"]);return Object(qr.createElement)(jo.CheckboxControl,{label:Object(I.__)("Allow Pingbacks & Trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var Ei=Object(io.compose)([Object(b.withSelect)((function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,a=r.isPublishingPost,s=r.getCurrentPost,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(g.get)(s(),["_links","wp:action-publish"],!1),postType:u(),isAutosaving:l()}}))])((function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving;return o?Object(I.__)("Publishing…"):t&&r&&!c?Object(I.__)("Updating…"):n&&r&&!c?Object(I.__)("Scheduling…"):i?t?Object(I.__)("Update"):n?Object(I.__)("Schedule"):Object(I.__)("Publish"):Object(I.__)("Submit for Review")})),Si=function(e){function t(e){var n;return Object(eo.a)(this,t),(n=Object(no.a)(this,Object(ro.a)(t).call(this,e))).buttonNode=Object(qr.createRef)(),n}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"render",value:function(){var e,t=this.props,n=t.forceIsDirty,r=t.forceIsSaving,o=t.hasPublishAction,i=t.isBeingScheduled,c=t.isOpen,a=t.isPostSavingLocked,s=t.isPublishable,l=t.isPublished,d=t.isSaveable,p=t.isSaving,b=t.isToggle,f=t.onSave,h=t.onStatusChange,m=t.onSubmit,v=void 0===m?g.noop:m,O=t.onToggle,j=t.visibility,y=p||r||!d||a||!s&&!n,_=l||p||r||!d||!s&&!n;e=o?i?"future":"private"===j?"private":"publish":"pending";var k={"aria-disabled":y,className:"editor-post-publish-button",isBusy:p&&l,isPrimary:!0,onClick:function(){y||(v(),h(e),f())}},E={"aria-disabled":_,"aria-expanded":c,className:"editor-post-publish-panel__toggle",isBusy:p&&l,isPrimary:!0,onClick:function(){_||O()}},S=i?Object(I.__)("Schedule…"):Object(I.__)("Publish…"),w=Object(qr.createElement)(Ei,{forceIsSaving:r}),P=b?E:k,C=b?S:w;return Object(qr.createElement)("div",null,Object(qr.createElement)(jo.Button,Object($o.a)({ref:this.buttonNode},P),C),Object(qr.createElement)(u.DotTip,{tipId:"core/editor.publish"},Object(I.__)("Finished writing? That’s great, let’s get this published right now. Just click “Publish†and you’re good to go.")))}}]),t}(qr.Component),wi=Object(io.compose)([Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isEditedPostBeingScheduled,o=t.getEditedPostVisibility,i=t.isCurrentPostPublished,c=t.isEditedPostSaveable,a=t.isEditedPostPublishable,s=t.isPostSavingLocked,u=t.getCurrentPost,l=t.getCurrentPostType;return{isSaving:n(),isBeingScheduled:r(),visibility:o(),isSaveable:c(),isPostSavingLocked:s(),isPublishable:a(),isPublished:i(),hasPublishAction:Object(g.get)(u(),["_links","wp:action-publish"],!1),postType:l()}})),Object(b.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost;return{onStatusChange:function(e){return n({status:e},{undoIgnore:!0})},onSave:t.savePost}}))])(Si),Pi=[{value:"public",label:Object(I.__)("Public"),info:Object(I.__)("Visible to everyone.")},{value:"private",label:Object(I.__)("Private"),info:Object(I.__)("Only visible to site admins and editors.")},{value:"password",label:Object(I.__)("Password Protected"),info:Object(I.__)("Protected with a password you choose. Only those with the password can view this post.")}],Ci=function(e){function t(e){var n;return Object(eo.a)(this,t),(n=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).setPublic=n.setPublic.bind(Object(go.a)(n)),n.setPrivate=n.setPrivate.bind(Object(go.a)(n)),n.setPasswordProtected=n.setPasswordProtected.bind(Object(go.a)(n)),n.updatePassword=n.updatePassword.bind(Object(go.a)(n)),n.state={hasPassword:!!e.password},n}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"setPublic",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r),this.setState({hasPassword:!1})}},{key:"setPrivate",value:function(){if(window.confirm(Object(I.__)("Would you like to privately publish this post now?"))){var e=this.props,t=e.onUpdateVisibility,n=e.onSave;t("private"),this.setState({hasPassword:!1}),n()}}},{key:"setPasswordProtected",value:function(){var e=this.props,t=e.visibility,n=e.onUpdateVisibility,r=e.status;n("private"===t?"draft":r,e.password||""),this.setState({hasPassword:!0})}},{key:"updatePassword",value:function(e){var t=this.props,n=t.status;(0,t.onUpdateVisibility)(n,e.target.value)}},{key:"render",value:function(){var e=this.props,t=e.visibility,n=e.password,r=e.instanceId,o={public:{onSelect:this.setPublic,checked:"public"===t&&!this.state.hasPassword},private:{onSelect:this.setPrivate,checked:"private"===t},password:{onSelect:this.setPasswordProtected,checked:this.state.hasPassword}};return[Object(qr.createElement)("fieldset",{key:"visibility-selector",className:"editor-post-visibility__dialog-fieldset"},Object(qr.createElement)("legend",{className:"editor-post-visibility__dialog-legend"},Object(I.__)("Post Visibility")),Pi.map((function(e){var t=e.value,n=e.label,i=e.info;return Object(qr.createElement)("div",{key:t,className:"editor-post-visibility__choice"},Object(qr.createElement)("input",{type:"radio",name:"editor-post-visibility__setting-".concat(r),value:t,onChange:o[t].onSelect,checked:o[t].checked,id:"editor-post-".concat(t,"-").concat(r),"aria-describedby":"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-radio"}),Object(qr.createElement)("label",{htmlFor:"editor-post-".concat(t,"-").concat(r),className:"editor-post-visibility__dialog-label"},n),Object(qr.createElement)("p",{id:"editor-post-".concat(t,"-").concat(r,"-description"),className:"editor-post-visibility__dialog-info"},i))}))),this.state.hasPassword&&Object(qr.createElement)("div",{className:"editor-post-visibility__dialog-password",key:"password-selector"},Object(qr.createElement)("label",{htmlFor:"editor-post-visibility__dialog-password-input-".concat(r),className:"screen-reader-text"},Object(I.__)("Create password")),Object(qr.createElement)("input",{className:"editor-post-visibility__dialog-password-input",id:"editor-post-visibility__dialog-password-input-".concat(r),type:"text",onChange:this.updatePassword,value:n,placeholder:Object(I.__)("Use a secure password")}))]}}]),t}(qr.Component),Ti=Object(io.compose)([Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditedPostVisibility;return{status:n("status"),visibility:r(),password:n("password")}})),Object(b.withDispatch)((function(e){var t=e("core/editor"),n=t.savePost,r=t.editPost;return{onSave:n,onUpdateVisibility:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";r({status:e,password:t})}}})),io.withInstanceId])(Ci);var xi=Object(b.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(g.find)(Pi,{value:t}).label}));var Bi=Object(io.compose)([Object(b.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(b.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(It.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(qr.createElement)(jo.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:n,is12Hour:o})}));var Ii=Object(b.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(It.__experimentalGetSettings)();return t&&!n?Object(It.dateI18n)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(I.__)("Immediately")})),Ai={per_page:-1,orderby:"count",order:"desc",_fields:"id,name"},Ri=function(e,t){return e.toLowerCase()===t.toLowerCase()},Li=function(e){return Object(p.a)({},e,{name:Object(g.unescape)(e.name)})},Ni=function(e){return Object(g.map)(e,Li)},Ui=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).onChange=e.onChange.bind(Object(go.a)(e)),e.searchTerms=Object(g.throttle)(e.searchTerms.bind(Object(go.a)(e)),500),e.findOrCreateTerm=e.findOrCreateTerm.bind(Object(go.a)(e)),e.state={loading:!Object(g.isEmpty)(e.props.terms),availableTerms:[],selectedTerms:[]},e}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"componentDidMount",value:function(){var e=this;Object(g.isEmpty)(this.props.terms)||(this.initRequest=this.fetchTerms({include:this.props.terms.join(","),per_page:-1}),this.initRequest.then((function(){e.setState({loading:!1})}),(function(t){"abort"!==t.statusText&&e.setState({loading:!1})})))}},{key:"componentWillUnmount",value:function(){Object(g.invoke)(this.initRequest,["abort"]),Object(g.invoke)(this.searchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){e.terms!==this.props.terms&&this.updateSelectedTerms(this.props.terms)}},{key:"fetchTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Object(p.a)({},Ai,t),o=B()({path:Object(At.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Ni).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(g.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(g.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(g.escape)(e);return B()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=B()({path:Object(At.addQueryArgs)("/wp/v2/".concat(n.rest_base),Object(p.a)({},Ai,{search:r}))}).then(Ni),t.addRequest.then((function(t){return Object(g.find)(t,(function(t){return Ri(t.name,e)}))}))):Promise.reject(o)})).then(Li)}},{key:"onChange",value:function(e){var t=this,n=Object(g.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(g.find)(t.state.availableTerms,(function(t){return Ri(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(g.find)(t,(function(t){return Ri(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(g.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(g.get)(n,["labels","add_new_item"],"post_tag"===t?Object(I.__)("Add New Tag"):Object(I.__)("Add New Term")),u=Object(g.get)(n,["labels","singular_name"],"post_tag"===t?Object(I.__)("Tag"):Object(I.__)("Term")),l=Object(I.sprintf)(Object(I._x)("%s added","term"),u),d=Object(I.sprintf)(Object(I._x)("%s removed","term"),u),p=Object(I.sprintf)(Object(I._x)("Remove %s","term"),u);return Object(qr.createElement)(jo.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}(qr.Component),Di=Object(io.compose)(Object(b.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(g.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(g.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(b.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(h.a)({},n,t))}}})),Object(jo.withFilters)("editor.PostTaxonomyType"))(Ui),Fi=function(){var e=[Object(I.__)("Suggestion:"),Object(qr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(I.__)("Add tags"))];return Object(qr.createElement)(jo.PanelBody,{initialOpen:!1,title:e},Object(qr.createElement)("p",null,Object(I.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(qr.createElement)(Di,{slug:"post_tag"}))},Mi=function(e){function t(e){var n;return Object(eo.a)(this,t),(n=Object(no.a)(this,Object(ro.a)(t).call(this,e))).state={hadTagsWhenOpeningThePanel:e.hasTags},n}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(qr.createElement)(Fi,null)}}]),t}(qr.Component),Vi=Object(io.compose)(Object(b.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(g.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(io.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(Mi),zi=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(qr.createElement)(jo.Button,{isLink:!0,onClick:function(){return r(t)}},n)},Hi=function(e,t){var n=di.filter((function(t){return Object(g.includes)(e,t.id)}));return Object(g.find)(n,(function(e){return e.id===t}))},Wi=Object(io.compose)(Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(g.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Hi(o,r())}})),Object(b.withDispatch)((function(e){return{onUpdatePostFormat:function(t){e("core/editor").editPost({format:t})}}})),Object(io.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(I.__)("Suggestion:"),Object(qr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(I.__)("Use a post format"))];return Object(qr.createElement)(jo.PanelBody,{initialOpen:!1,title:r},Object(qr.createElement)("p",null,Object(I.__)("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(qr.createElement)("p",null,Object(qr.createElement)(zi,{onUpdatePostFormat:n,suggestedPostFormat:t.id,suggestionText:Object(I.sprintf)(Object(I.__)('Apply the "%1$s" format.'),t.caption)})))}));var Ki=Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(g.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(I.__)("Are you ready to schedule?"),n=Object(I.__)("Your work will be published at the specified date and time.")):(t=Object(I.__)("Are you ready to publish?"),n=Object(I.__)("Double-check your settings before publishing.")):(t=Object(I.__)("Are you ready to submit for review?"),n=Object(I.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(qr.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(qr.createElement)("div",null,Object(qr.createElement)("strong",null,t)),Object(qr.createElement)("p",null,n),r&&Object(qr.createElement)(qr.Fragment,null,Object(qr.createElement)(jo.PanelBody,{initialOpen:!1,title:[Object(I.__)("Visibility:"),Object(qr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(qr.createElement)(xi,null))]},Object(qr.createElement)(Ti,null)),Object(qr.createElement)(jo.PanelBody,{initialOpen:!1,title:[Object(I.__)("Publish:"),Object(qr.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(qr.createElement)(Ii,null))]},Object(qr.createElement)(Bi,null))),Object(qr.createElement)(Wi,null),Object(qr.createElement)(Vi,null),i)})),Gi=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.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(qr.createRef)(),e}return Object(oo.a)(t,e),Object(to.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(g.get)(o,["labels","singular_name"]),c=Object(g.get)(o,["labels","view_item"]),a=n?Object(qr.createElement)(qr.Fragment,null,Object(I.__)("is now scheduled. It will go live on")," ",Object(qr.createElement)(Ii,null),"."):Object(I.__)("is now live.");return Object(qr.createElement)("div",{className:"post-publish-panel__postpublish"},Object(qr.createElement)(jo.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(qr.createElement)("a",{ref:this.postLink,href:r.link},r.title||Object(I.__)("(no title)"))," ",a),Object(qr.createElement)(jo.PanelBody,null,Object(qr.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(qr.createElement)("strong",null,Object(I.__)("What’s next?"))),Object(qr.createElement)(jo.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(I.sprintf)(Object(I.__)("%s address"),i),value:Object(At.safeDecodeURIComponent)(r.link),onFocus:this.onSelectInput}),Object(qr.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(qr.createElement)(jo.Button,{isDefault:!0,href:r.link},c),Object(qr.createElement)(jo.ClipboardButton,{isDefault:!0,text:r.link,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(I.__)("Copied!"):Object(I.__)("Copy Link")))),t)}}]),t}(qr.Component),qi=Object(b.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()}}))(Gi),Yi=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).onSubmit=e.onSubmit.bind(Object(go.a)(e)),e}return Object(oo.a)(t,e),Object(to.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(xo.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(g.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!a,m=f&&!a;return Object(qr.createElement)("div",Object($o.a)({className:"editor-post-publish-panel"},b),Object(qr.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(qr.createElement)("div",{className:"editor-post-publish-panel__header-published"},c?Object(I.__)("Scheduled"):Object(I.__)("Published")):Object(qr.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(qr.createElement)(wi,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n}),Object(qr.createElement)("span",{className:"editor-post-publish-panel__spacer"})),Object(qr.createElement)(jo.IconButton,{"aria-expanded":!0,onClick:s,icon:"no-alt",label:Object(I.__)("Close panel")})),Object(qr.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(qr.createElement)(Ki,null,d&&Object(qr.createElement)(d,null)),m&&Object(qr.createElement)(qi,{focusOnMount:!0},l&&Object(qr.createElement)(l,null)),a&&Object(qr.createElement)(jo.Spinner,null)),Object(qr.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(qr.createElement)(jo.CheckboxControl,{label:Object(I.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),t}(qr.Component),Qi=Object(io.compose)([Object(b.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(g.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(g.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(b.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),jo.withFocusReturn,jo.withConstrainedTabbing])(Yi);var Xi=Object(io.compose)([Object(b.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(b.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}})),Object(d.withViewportMatch)({isMobileViewport:"< small"})])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=e.isMobileViewport;return n||r?Object(qr.createElement)(jo.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(I.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(I.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(I.__)("Draft"):Object(I.__)("Switch to Draft")):null})),Zi=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).state={forceSavedMessage:!1},e}return Object(oo.a)(t,e),Object(to.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=uo()("editor-post-saved-state","is-saving",{"is-autosaving":u});return Object(qr.createElement)(jo.Animate,{type:"loading"},(function(e){var t=e.className;return Object(qr.createElement)("span",{className:uo()(b,t)},Object(qr.createElement)(jo.Dashicon,{icon:"cloud"}),u?Object(I.__)("Autosaving"):Object(I.__)("Saving"))}))}if(o||r)return Object(qr.createElement)(Xi,null);if(!a)return null;if(p||!n&&!i)return Object(qr.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(qr.createElement)(jo.Dashicon,{icon:"saved"}),Object(I.__)("Saved"));if(!Object(g.get)(t,["_links","wp:action-publish"],!1)&&l)return null;var f=l?Object(I.__)("Save as Pending"):Object(I.__)("Save Draft");return d?Object(qr.createElement)(jo.Button,{className:"editor-post-save-draft",onClick:function(){return s()},shortcut:yo.displayShortcut.primary("s"),isTertiary:!0},f):Object(qr.createElement)(jo.IconButton,{className:"editor-post-save-draft",label:f,onClick:function(){return s()},shortcut:yo.displayShortcut.primary("s"),icon:"cloud-upload"})}}]),t}(qr.Component),Ji=Object(io.compose)([Object(b.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(b.withDispatch)((function(e){return{onSave:e("core/editor").savePost}})),io.withSafeTimeout,Object(d.withViewportMatch)({isLargeViewport:"small"})])(Zi);var $i=Object(io.compose)([Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(g.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));var ec=Object(io.compose)([Object(b.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(g.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 tc=Object(io.compose)([Object(b.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(b.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(qr.createElement)(ec,null,Object(qr.createElement)(jo.CheckboxControl,{label:Object(I.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))})),nc={per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent"},rc=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).findTerm=e.findTerm.bind(Object(go.a)(e)),e.onChange=e.onChange.bind(Object(go.a)(e)),e.onChangeFormName=e.onChangeFormName.bind(Object(go.a)(e)),e.onChangeFormParent=e.onChangeFormParent.bind(Object(go.a)(e)),e.onAddTerm=e.onAddTerm.bind(Object(go.a)(e)),e.onToggleForm=e.onToggleForm.bind(Object(go.a)(e)),e.setFilterValue=e.setFilterValue.bind(Object(go.a)(e)),e.sortBySelected=e.sortBySelected.bind(Object(go.a)(e)),e.state={loading:!0,availableTermsTree:[],availableTerms:[],adding:!1,formName:"",formParent:"",showForm:!1,filterValue:"",filteredTermsTree:[]},e}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"onChange",value:function(e){var t=this.props,n=t.onUpdateTerms,r=t.terms,o=void 0===r?[]:r,i=t.taxonomy;n(-1!==o.indexOf(e)?Object(g.without)(o,e):[].concat(Object(R.a)(o),[e]),i.rest_base)}},{key:"onChangeFormName",value:function(e){var t=""===e.target.value.trim()?"":e.target.value;this.setState({formName:t})}},{key:"onChangeFormParent",value:function(e){this.setState({formParent:e})}},{key:"onToggleForm",value:function(){this.setState((function(e){return{showForm:!e.showForm}}))}},{key:"findTerm",value:function(e,t,n){return Object(g.find)(e,(function(e){return(!e.parent&&!t||parseInt(e.parent)===parseInt(t))&&e.name.toLowerCase()===n.toLowerCase()}))}},{key:"onAddTerm",value:function(e){var t=this;e.preventDefault();var n=this.props,r=n.onUpdateTerms,o=n.taxonomy,i=n.terms,c=n.slug,a=this.state,s=a.formName,u=a.formParent,l=a.adding,d=a.availableTerms;if(""!==s&&!l){var b=this.findTerm(d,u,s);if(b)return Object(g.some)(i,(function(e){return e===b.id}))||r([].concat(Object(R.a)(i),[b.id]),o.rest_base),void this.setState({formName:"",formParent:""});this.setState({adding:!0}),this.addRequest=B()({path:"/wp/v2/".concat(o.rest_base),method:"POST",data:{name:s,parent:u||void 0}}),this.addRequest.catch((function(e){return"term_exists"===e.code?(t.addRequest=B()({path:Object(At.addQueryArgs)("/wp/v2/".concat(o.rest_base),Object(p.a)({},nc,{parent:u||0,search:s}))}),t.addRequest.then((function(e){return t.findTerm(e,u,s)}))):Promise.reject(e)})).then((function(e){var n=!!Object(g.find)(t.state.availableTerms,(function(t){return t.id===e.id}))?t.state.availableTerms:[e].concat(Object(R.a)(t.state.availableTerms)),a=Object(I.sprintf)(Object(I._x)("%s added","term"),Object(g.get)(t.props.taxonomy,["labels","singular_name"],"category"===c?Object(I.__)("Category"):Object(I.__)("Term")));t.props.speak(a,"assertive"),t.addRequest=null,t.setState({adding:!1,formName:"",formParent:"",availableTerms:n,availableTermsTree:t.sortBySelected(zo(n))}),r([].concat(Object(R.a)(i),[e.id]),o.rest_base)}),(function(e){"abort"!==e.statusText&&(t.addRequest=null,t.setState({adding:!1}))}))}}},{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(g.invoke)(this.fetchRequest,["abort"]),Object(g.invoke)(this.addRequest,["abort"])}},{key:"componentDidUpdate",value:function(e){this.props.taxonomy!==e.taxonomy&&this.fetchTerms()}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=B()({path:Object(At.addQueryArgs)("/wp/v2/".concat(t.rest_base),nc)}),this.fetchRequest.then((function(t){var n=e.sortBySelected(zo(t));e.fetchRequest=null,e.setState({loading:!1,availableTermsTree:n,availableTerms:t})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"sortBySelected",value:function(e){var t=this.props.terms,n=function e(n){return-1!==t.indexOf(n.id)||void 0!==n.children&&!!(n.children.map(e).filter((function(e){return e})).length>0)};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;r<t.length;r++)n++,void 0!==t[r].children&&(n+=e(t[r].children));return n}(r),i=Object(I.sprintf)(Object(I._n)("%d result found.","%d results found.",o),o);this.props.debouncedSpeak(i,"assertive")}},{key:"getFilterMatcher",value:function(e){return function t(n){if(""===e)return n;var r=Object(p.a)({},n);return r.children.length>0&&(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(qr.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(qr.createElement)(jo.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(g.unescape)(e.name)}),!!e.children.length&&Object(qr.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(g.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(I.__)("Add new category"),Object(I.__)("Add new term")),m=f("new_item_name",Object(I.__)("Add new category"),Object(I.__)("Add new term")),v=f("parent_item",Object(I.__)("Parent Category"),Object(I.__)("Parent Term")),O="— ".concat(v," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),k=Object(g.get)(this.props.taxonomy,["labels","search_items"],Object(I.__)("Search Terms")),E=Object(g.get)(this.props.taxonomy,["name"],Object(I.__)("Terms")),S=a.length>=8;return[S&&Object(qr.createElement)("label",{key:"filter-label",htmlFor:_},k),S&&Object(qr.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(qr.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(qr.createElement)(jo.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(qr.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(qr.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(qr.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(qr.createElement)(jo.TreeSelect,{label:v,noOptionLabel:O,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(qr.createElement)(jo.Button,{isDefault:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),t}(qr.Component),oc=Object(io.compose)([Object(b.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(g.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(g.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(b.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(h.a)({},n,t))}}})),jo.withSpokenMessages,io.withInstanceId,Object(jo.withFilters)("editor.PostTaxonomyType")])(rc);var ic=Object(io.compose)([Object(b.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?g.identity:r,i=Object(g.filter)(n,(function(e){return Object(g.includes)(e.types,t)}));return Object(g.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?oc:Di;return Object(qr.createElement)(qr.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(qr.createElement)(t,{slug:e.slug}),e))}))}));var cc=Object(io.compose)([Object(b.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(g.some)(n,(function(e){return Object(g.includes)(e.types,t)}))?r:null})),ac=n("O6Fj"),sc=n.n(ac),uc=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.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(oo.a)(t,e),Object(to.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(qr.createElement)(qr.Fragment,null,Object(qr.createElement)("label",{htmlFor:"post-content-".concat(t),className:"screen-reader-text"},Object(I.__)("Type text or HTML")),Object(qr.createElement)(sc.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(I.__)("Start writing with text or HTML")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.isDirty?null:{value:e.value,isDirty:!1}}}]),t}(qr.Component),lc=Object(io.compose)([Object(b.withSelect)((function(e){return{value:(0,e("core/editor").getEditedPostContent)()}})),Object(b.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(s.parse)(e);r(t)}}})),io.withInstanceId])(uc),dc=function(e){function t(e){var n,r=e.permalinkParts,o=e.slug;return Object(eo.a)(this,t),(n=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).state={editedPostName:o||r.postName},n.onSavePermalink=n.onSavePermalink.bind(Object(go.a)(n)),n}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"onSavePermalink",value:function(e){var t=hi(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(qr.createElement)("form",{className:"editor-post-permalink-editor",onSubmit:this.onSavePermalink},Object(qr.createElement)("span",{className:"editor-post-permalink__editor-container"},Object(qr.createElement)("span",{className:"editor-post-permalink-editor__prefix"},n),Object(qr.createElement)("input",{className:"editor-post-permalink-editor__edit","aria-label":Object(I.__)("Edit post permalink"),value:o,onChange:function(t){return e.setState({editedPostName:t.target.value})},type:"text",autoFocus:!0}),Object(qr.createElement)("span",{className:"editor-post-permalink-editor__suffix"},r),"‎"),Object(qr.createElement)(jo.Button,{className:"editor-post-permalink-editor__save",isLarge:!0,onClick:this.onSavePermalink},Object(I.__)("Save")))}}]),t}(qr.Component),pc=Object(io.compose)([Object(b.withSelect)((function(e){return{permalinkParts:(0,e("core/editor").getPermalinkParts)()}})),Object(b.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])(dc),bc=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.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(oo.a)(t,e),Object(to.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(I.__)("Permalink copied"):Object(I.__)("Copy the permalink"),h=c.prefix,m=c.suffix,v=Object(At.safeDecodeURIComponent)(s)||hi(l)||u,O=n?h+v+m:h;return Object(qr.createElement)("div",{className:"editor-post-permalink"},Object(qr.createElement)(jo.ClipboardButton,{className:uo()("editor-post-permalink__copy",{"is-copied":p}),text:O,label:f,onCopy:function(){return e.setState({isCopied:!0})},"aria-disabled":p,icon:"admin-links"}),Object(qr.createElement)("span",{className:"editor-post-permalink__label"},Object(I.__)("Permalink:")),!b&&Object(qr.createElement)(jo.ExternalLink,{className:"editor-post-permalink__link",href:o?O:a,target:"_blank",ref:function(t){return e.linkElement=t}},Object(At.safeDecodeURI)(O),"‎"),b&&Object(qr.createElement)(pc,{slug:v,onSave:function(){return e.setState({isEditingPermalink:!1})}}),n&&!b&&Object(qr.createElement)(jo.Button,{className:"editor-post-permalink__edit",isLarge:!0,onClick:function(){return e.setState({isEditingPermalink:!0})}},Object(I.__)("Edit")))}}]),t}(qr.Component),fc=Object(io.compose)([Object(b.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(g.get)(p,["viewable"],!1)}})),Object(b.withDispatch)((function(e){return{refreshPost:e("core/editor").refreshPost}}))])(bc),hc=/[\r\n]+/g,mc=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.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.redirectHistory=e.redirectHistory.bind(Object(go.a)(e)),e.state={isSelected:!1},e}return Object(oo.a)(t,e),Object(to.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(hc," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===yo.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"redirectHistory",value:function(e){e.shiftKey?this.props.onRedo():this.props.onUndo(),e.preventDefault()}},{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=uo()("wp-block editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),l=Object(qo.decodeEntities)(c);return Object(qr.createElement)(Fo,{supportKeys:"title"},Object(qr.createElement)("div",{className:"editor-post-title"},Object(qr.createElement)("div",{className:u},Object(qr.createElement)(jo.KeyboardShortcuts,{shortcuts:{"mod+z":this.redirectHistory,"mod+shift+z":this.redirectHistory}},Object(qr.createElement)("label",{htmlFor:"post-title-".concat(i),className:"screen-reader-text"},l||Object(I.__)("Add title")),Object(qr.createElement)(sc.a,{id:"post-title-".concat(i),className:"editor-post-title__input",value:a,onChange:this.onChange,placeholder:l||Object(I.__)("Add title"),onFocus:this.onSelect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,autoFocus:document.body===document.activeElement&&n})),s&&o&&Object(qr.createElement)(fc,null))))}}]),t}(qr.Component),vc=Object(b.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(g.get)(i,["viewable"],!1),placeholder:a,isFocusMode:s,hasFixedToolbar:u}})),Oc=Object(b.withDispatch)((function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=e("core/editor"),i=o.editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onUpdate:function(e){i({title:e})},onUndo:o.undo,onRedo:o.redo,clearSelectedBlock:r}})),gc=Object(io.compose)(vc,Oc,io.withInstanceId,jo.withFocusOutside)(mc);var jc=Object(io.compose)([Object(b.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(b.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object(xo.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(qr.createElement)(jo.Button,{className:"editor-post-trash button-link-delete",onClick:function(){return o.trashPost(n,r)},isDefault:!0,isLarge:!0},Object(I.__)("Move to Trash"))}));var yc=Object(b.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 _c=Object(io.compose)([Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(g.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),kc=n("7fqt");var Ec=Object(b.withSelect)((function(e){return{content:e("core/editor").getEditedPostAttribute("content")}}))((function(e){var t=e.content,n=Object(I._x)("words","Word count type. Do not translate!");return Object(qr.createElement)("span",{className:"word-count"},Object(kc.count)(t,n))}));var Sc=Object(b.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(qr.createElement)(qr.Fragment,null,Object(qr.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(I.__)("Document Statistics"),tabIndex:"0"},Object(qr.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(qr.createElement)("li",{className:"table-of-contents__count"},Object(I.__)("Words"),Object(qr.createElement)(Ec,null)),Object(qr.createElement)("li",{className:"table-of-contents__count"},Object(I.__)("Headings"),Object(qr.createElement)("span",{className:"table-of-contents__number"},t)),Object(qr.createElement)("li",{className:"table-of-contents__count"},Object(I.__)("Paragraphs"),Object(qr.createElement)("span",{className:"table-of-contents__number"},n)),Object(qr.createElement)("li",{className:"table-of-contents__count"},Object(I.__)("Blocks"),Object(qr.createElement)("span",{className:"table-of-contents__number"},r)))),t>0&&Object(qr.createElement)(qr.Fragment,null,Object(qr.createElement)("hr",null),Object(qr.createElement)("h2",{className:"table-of-contents__title"},Object(I.__)("Document Outline")),Object(qr.createElement)(vo,{onSelect:i,hasOutlineItemsDisabled:o})))}));var wc=Object(b.withSelect)((function(e){return{hasBlocks:!!e("core/block-editor").getBlockCount()}}))((function(e){var t=e.hasBlocks,n=e.hasOutlineItemsDisabled;return Object(qr.createElement)(jo.Dropdown,{position:"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(qr.createElement)(jo.IconButton,{onClick:t?r:void 0,icon:"info-outline","aria-expanded":n,label:Object(I.__)("Content structure"),labelPosition:"bottom","aria-disabled":!t})},renderContent:function(e){var t=e.onClose;return Object(qr.createElement)(Sc,{onRequestClose:t,hasOutlineItemsDisabled:n})}})})),Pc=function(e){function t(){var e;return Object(eo.a)(this,t),(e=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).warnIfUnsavedChanges=e.warnIfUnsavedChanges.bind(Object(go.a)(e)),e}return Object(oo.a)(t,e),Object(to.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(I.__)("You have unsaved changes. If you proceed, they will be lost."),e.returnValue}},{key:"render",value:function(){return null}}]),t}(qr.Component),Cc=Object(b.withSelect)((function(e){return{isEditedPostDirty:e("core/editor").isEditedPostDirty}}))(Pc),Tc=Object(io.createHigherOrderComponent)((function(e){return Object(b.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(xo.a)(t,["useSubRegistry","registry"]);if(!r)return Object(qr.createElement)(e,i);var c=Object(qr.useState)(null),s=Object(A.a)(c,2),u=s[0],l=s[1];return Object(qr.useEffect)((function(){var e=Object(b.createRegistry)({"core/block-editor":a.storeConfig},o),t=e.registerStore("core/editor",Wr);Hr(t),l(e)}),[o]),u?Object(qr.createElement)(b.RegistryProvider,{value:u},Object(qr.createElement)(e,i)):null}))}),"withRegistryProvider"),xc=n("6aBm"),Bc=function(e){var t=e.additionalData,n=void 0===t?{}:t,r=e.allowedTypes,o=e.filesList,i=e.maxUploadFileSize,c=e.onError,a=void 0===c?g.noop:c,s=e.onFileChange,u=Object(b.select)("core/editor"),l=u.getCurrentPostId,d=u.getEditorSettings,f=d().allowedMimeTypes;i=i||d().maxUploadFileSize,Object(xc.uploadMedia)({allowedTypes:r,filesList:o,onFileChange:s,additionalData:Object(p.a)({post:l()},n),maxUploadFileSize:i,onError:function(e){var t=e.message;return a(t)},wpAllowedMimeTypes:f})};var Ic=Object(io.compose)([Object(b.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.canInsertBlockType,c=e("core/editor").__experimentalGetReusableBlock,a=e("core").canUser,u=o(n),l=1===u.length&&u[0]&&Object(s.isReusableBlock)(u[0])&&!!c(u[0].attributes.ref);return{isReusable:l,isVisible:l||i("core/block")&&Object(g.every)(u,(function(e){return!!e&&e.isValid&&Object(s.hasBlockSupport)(e.name,"reusable",!0)}))&&!!a("create","blocks")}})),Object(b.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?g.noop:r,i=e("core/editor"),c=i.__experimentalConvertBlockToReusable,a=i.__experimentalConvertBlockToStatic;return{onConvertToStatic:function(){1===n.length&&(a(n[0]),o())},onConvertToReusable:function(){c(n),o()}}}))])((function(e){var t=e.isVisible,n=e.isReusable,r=e.onConvertToStatic,o=e.onConvertToReusable;return t?Object(qr.createElement)(qr.Fragment,null,!n&&Object(qr.createElement)(jo.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:o},Object(I.__)("Add to Reusable Blocks")),n&&Object(qr.createElement)(jo.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"controls-repeat",onClick:r},Object(I.__)("Convert to Regular Block"))):null}));var Ac=Object(io.compose)([Object(b.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core").canUser,i=e("core/editor").__experimentalGetReusableBlock,c=r(n),a=c&&Object(s.isReusableBlock)(c)?i(c.attributes.ref):null;return{isVisible:!!a&&!!o("delete","blocks",a.id),isDisabled:a&&a.isTemporary}})),Object(b.withDispatch)((function(e,t,n){var r=t.clientId,o=t.onToggle,i=void 0===o?g.noop:o,c=n.select,a=e("core/editor").__experimentalDeleteReusableBlock,s=c("core/block-editor").getBlock;return{onDelete:function(){if(window.confirm(Object(I.__)("Are you sure you want to delete this Reusable Block?\n\nIt will be permanently removed from all posts and pages that use it."))){var e=s(r);a(e.attributes.ref),i()}}}}))])((function(e){var t=e.isVisible,n=e.isDisabled,r=e.onDelete;return t?Object(qr.createElement)(jo.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:"no",disabled:n,onClick:function(){return r()}},Object(I.__)("Remove from Reusable Blocks")):null}));var Rc=Object(b.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(qr.createElement)(a.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(qr.createElement)(qr.Fragment,null,Object(qr.createElement)(Ic,{clientIds:t,onToggle:n}),1===t.length&&Object(qr.createElement)(Ac,{clientId:t[0],onToggle:n}))}))})),Lc=Object(qr.createElement)(jo.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(qr.createElement)(jo.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8 5a1 1 0 0 0-1 1v3H6a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-3h1a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H8zm3 6H7v2h4v-2zM9 9V7h4v2H9z"}),Object(qr.createElement)(jo.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M1 3a2 2 0 0 0 1 1.732v10.536A2 2 0 1 0 4.732 18h10.536A2 2 0 1 0 18 15.268V4.732A2 2 0 1 0 15.268 2H4.732A2 2 0 0 0 1 3zm14.268 1H4.732A2.01 2.01 0 0 1 4 4.732v10.536c.304.175.557.428.732.732h10.536a2.01 2.01 0 0 1 .732-.732V4.732A2.01 2.01 0 0 1 15.268 4z"})),Nc=Object(qr.createElement)(jo.Icon,{icon:Lc}),Uc=Object(qr.createElement)(jo.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(qr.createElement)(jo.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2H15C16.1 2 17 2.9 17 4V7C17 8.1 16.1 9 15 9H9C7.9 9 7 8.1 7 7V4C7 2.9 7.9 2 9 2ZM9 7H15V4H9V7Z"}),Object(qr.createElement)(jo.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H11C12.1 11 13 11.9 13 13V16C13 17.1 12.1 18 11 18H5C3.9 18 3 17.1 3 16V13C3 11.9 3.9 11 5 11ZM5 16H11V13H5V16Z"})),Dc=Object(qr.createElement)(jo.Icon,{icon:Uc});var Fc=Object(io.compose)([Object(b.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlockRootClientId,i=r.getBlocksByClientId,c=r.canInsertBlockType,a=(0,e("core/blocks").getGroupingBlockName)(),s=c(a,n&&n.length>0?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(b.withDispatch)((function(e,t){var n=t.clientIds,r=t.onToggle,o=void 0===r?g.noop:r,i=t.blocksSelection,c=void 0===i?[]:i,a=t.groupingBlockName,u=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){if(c.length){var e=Object(s.switchToBlockType)(c,a);e&&u(n,e),o()}},onConvertFromGroup:function(){if(c.length){var e=c[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(qr.createElement)(qr.Fragment,null,o&&Object(qr.createElement)(jo.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:Nc,onClick:t},Object(I._x)("Group","verb")),c&&Object(qr.createElement)(jo.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",icon:Dc,onClick:n},Object(I._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))}));var Mc=Object(b.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds;return Object(qr.createElement)(a.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var n=e.onClose;return Object(qr.createElement)(qr.Fragment,null,Object(qr.createElement)(Fc,{clientIds:t,onToggle:n}))}))})),Vc=function(){var e=Object(T.a)(C.a.mark((function e(t){var n;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B()({path:Object(At.addQueryArgs)("/wp/v2/search",{search:t,per_page:20,type:"post"})});case 2:return n=e.sent,e.abrupt("return",Object(g.map)(n,(function(e){return{id:e.id,url:e.url,title:Object(qo.decodeEntities)(e.title)||Object(I.__)("(no title)")}})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),zc=function(e){function t(e){var n;return Object(eo.a)(this,t),(n=Object(no.a)(this,Object(ro.a)(t).apply(this,arguments))).getBlockEditorSettings=G()(n.getBlockEditorSettings,{maxSize:1}),e.recovery?Object(no.a)(n):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(I.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(I.__)("View the autosave"),url:e.settings.autosave.editLink}]}),n)}return Object(oo.a)(t,e),Object(to.a)(t,[{key:"getBlockEditorSettings",value:function(e,t,n,r){return Object(p.a)({},Object(g.pick)(e,["alignWide","allowedBlockTypes","__experimentalPreferredStyleVariations","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","focusMode","fontSizes","hasFixedToolbar","hasPermissionsToManageWidgets","imageSizes","isRTL","maxWidth","styles","template","templateLock","titlePlaceholder","onUpdateDefaultBlockStyles","__experimentalEnableLegacyWidgetBlock","__experimentalEnableMenuBlock","showInserterHelpPanel"]),{__experimentalReusableBlocks:t,__experimentalMediaUpload:n?Bc:void 0,__experimentalFetchLinkSuggestions:Vc,__experimentalCanUserUseUnfilteredHTML:r})}},{key:"componentDidMount",value:function(){if(this.props.updateEditorSettings(this.props.settings),this.props.settings.styles){var e=Object(a.transformStyles)(this.props.settings.styles,".editor-styles-wrapper");Object(g.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.blocks,o=e.resetEditorBlocks,i=e.isReady,c=e.settings,s=e.reusableBlocks,u=e.resetEditorBlocksWithoutUndoLevel,l=e.hasUploadPermissions;if(!i)return null;var d=this.getBlockEditorSettings(c,s,l,t);return Object(qr.createElement)(a.BlockEditorProvider,{value:r,onInput:u,onChange:o,settings:d,useSubRegistry:!1},n,Object(qr.createElement)(Rc,null),Object(qr.createElement)(Mc,null))}}]),t}(qr.Component),Hc=Object(io.compose)([Tc,Object(b.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.__experimentalGetReusableBlocks,c=e("core").canUser;e("core/block-editor").getBlocks;return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),reusableBlocks:i(),hasUploadPermissions:Object(g.defaultTo)(c("create","media"),!0)}})),Object(b.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalTearDownEditor;return{setupEditor:n,updatePostLock:r,createWarningNotice:e("core/notices").createWarningNotice,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e){o(e,{__unstableShouldCreateUndoLevel:!1})},tearDownEditor:c}}))])(zc),Wc=n("JREk"),Kc=n.n(Wc);function Gc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(qr.forwardRef)((function(n,r){return N()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(qr.createElement)(t,Object($o.a)({ref:r},n))}));return n.forEach((function(n){r[n]=Gc(e+"."+n,t[n])})),r}function qc(e,t){return function(){return N()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var Yc=Gc("RichText",a.RichText,["Content"]);Yc.isEmpty=qc("RichText.isEmpty",a.RichText.isEmpty);var Qc=Gc("Autocomplete",a.Autocomplete),Xc=Gc("AlignmentToolbar",a.AlignmentToolbar),Zc=Gc("BlockAlignmentToolbar",a.BlockAlignmentToolbar),Jc=Gc("BlockControls",a.BlockControls,["Slot"]),$c=Gc("BlockEdit",a.BlockEdit),ea=Gc("BlockEditorKeyboardShortcuts",a.BlockEditorKeyboardShortcuts),ta=Gc("BlockFormatControls",a.BlockFormatControls,["Slot"]),na=Gc("BlockIcon",a.BlockIcon),ra=Gc("BlockInspector",a.BlockInspector),oa=Gc("BlockList",a.BlockList),ia=Gc("BlockMover",a.BlockMover),ca=Gc("BlockNavigationDropdown",a.BlockNavigationDropdown),aa=Gc("BlockSelectionClearer",a.BlockSelectionClearer),sa=Gc("BlockSettingsMenu",a.BlockSettingsMenu),ua=Gc("BlockTitle",a.BlockTitle),la=Gc("BlockToolbar",a.BlockToolbar),da=Gc("ColorPalette",a.ColorPalette),pa=Gc("ContrastChecker",a.ContrastChecker),ba=Gc("CopyHandler",a.CopyHandler),fa=Gc("DefaultBlockAppender",a.DefaultBlockAppender),ha=Gc("FontSizePicker",a.FontSizePicker),ma=Gc("Inserter",a.Inserter),va=Gc("InnerBlocks",a.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),Oa=Gc("InspectorAdvancedControls",a.InspectorAdvancedControls,["Slot"]),ga=Gc("InspectorControls",a.InspectorControls,["Slot"]),ja=Gc("PanelColorSettings",a.PanelColorSettings),ya=Gc("PlainText",a.PlainText),_a=Gc("RichTextShortcut",a.RichTextShortcut),ka=Gc("RichTextToolbarButton",a.RichTextToolbarButton),Ea=Gc("__unstableRichTextInputEvent",a.__unstableRichTextInputEvent),Sa=Gc("MediaPlaceholder",a.MediaPlaceholder),wa=Gc("MediaUpload",a.MediaUpload),Pa=Gc("MediaUploadCheck",a.MediaUploadCheck),Ca=Gc("MultiBlocksSwitcher",a.MultiBlocksSwitcher),Ta=Gc("MultiSelectScrollIntoView",a.MultiSelectScrollIntoView),xa=Gc("NavigableToolbar",a.NavigableToolbar),Ba=Gc("ObserveTyping",a.ObserveTyping),Ia=Gc("PreserveScrollInReorder",a.PreserveScrollInReorder),Aa=Gc("SkipToSelectedBlock",a.SkipToSelectedBlock),Ra=Gc("URLInput",a.URLInput),La=Gc("URLInputButton",a.URLInputButton),Na=Gc("URLPopover",a.URLPopover),Ua=Gc("Warning",a.Warning),Da=Gc("WritingFlow",a.WritingFlow),Fa=qc("createCustomColorsHOC",a.createCustomColorsHOC),Ma=qc("getColorClassName",a.getColorClassName),Va=qc("getColorObjectByAttributeValues",a.getColorObjectByAttributeValues),za=qc("getColorObjectByColorValue",a.getColorObjectByColorValue),Ha=qc("getFontSize",a.getFontSize),Wa=qc("getFontSizeClass",a.getFontSizeClass),Ka=qc("withColorContext",a.withColorContext),Ga=qc("withColors",a.withColors),qa=qc("withFontSizes",a.withFontSizes);Object(Gr.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(g.clone)($r)),t===Object(s.getDefaultBlockName)()&&e.push(Object(g.clone)(Jr)),e}))},PYwp:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},Rk8H:function(e,t,n){var r=n("jTPX");e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var i=e.nodeName,c=document.createElement(i);c.innerHTML="&nbsp;","TEXTAREA"===i.toUpperCase()&&c.setAttribute("rows","1");var a=r(e,"font-size");c.style.fontSize=a,c.style.padding="0px",c.style.border="0px";var s=document.body;s.appendChild(c),n=c.offsetHeight,s.removeChild(c)}return n}},RxS6:function(e,t){!function(){e.exports=this.wp.keycodes}()},TSYQ:function(e,t,n){var r;
/*!
  Copyright (c) 2018 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<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var c=o.apply(null,r);c&&e.push(c)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var a in r)n.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},U8pU:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},UuzZ:function(e,t){!function(){e.exports=this.wp.autop}()},WbBG:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},WsEz:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var o=[];function i(e,t){return e.optimist&&e.optimist.id===t}function c(e,t){if(!e||"object"!=typeof e||Array.isArray(e))throw new TypeError('Error while handling "'+t.type+'": Optimist requires that state is always a plain object.')}function a(e){if(e){var t=e.optimist;return{optimist:void 0===t?o:t,innerState:function(e,t){var n={};for(var r in e)t.indexOf(r)>=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"},YLtl:function(e,t){!function(){e.exports=this.lodash}()},ZU7w:function(e,t){!function(){e.exports=this.wp.nux}()},axFQ:function(e,t){!function(){e.exports=this.wp.blockEditor}()},cDcd:function(e,t){!function(){e.exports=this.React}()},foSv:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},g56x:function(e,t){!function(){e.exports=this.wp.hooks}()},gQxa: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<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(n,e),(t=function(e){return function(t){return function(r){var o,i,c=n[r.type],a=t(r);if(c)for(o=0;o<c.length;o++)(i=c[o](r,e))&&e.dispatch(i);return a}}}).effects=n,t}},"hx/w":function(e,t,n){e.exports=n("WsEz")},jTPX:function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},jZUy:function(e,t){!function(){e.exports=this.wp.coreData}()},l3Sj:function(e,t){!function(){e.exports=this.wp.i18n}()},ls82:function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function a(e,t,n,r){var o=t&&t.prototype instanceof l?t:l,i=Object.create(o.prototype),c=new _(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=g(c,n);if(a){if(a===u)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,c),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=a;var u={};function l(){}function d(){}function p(){}var b={};b[o]=function(){return this};var f=Object.getPrototypeOf,h=f&&f(f(k([])));h&&h!==t&&n.call(h,o)&&(b=h);var m=p.prototype=l.prototype=Object.create(b);function v(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function O(e){var t;this._invoke=function(r,o){function i(){return new Promise((function(t,i){!function t(r,o,i,c){var a=s(e[r],e,o);if("throw"!==a.type){var u=a.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then((function(e){t("next",e,i,c)}),(function(e){t("throw",e,i,c)})):Promise.resolve(l).then((function(e){u.value=e,i(u)}),(function(e){return t("throw",e,i,c)}))}c(a.arg)}(r,o,t,i)}))}return t=t?t.then(i,i):i()}}function g(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return d.prototype=m.constructor=p,p.constructor=d,p[c]=d.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},v(O.prototype),O.prototype[i]=function(){return this},e.AsyncIterator=O,e.async=function(t,n,r,o){var i=new O(a(t,n,r,o));return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(m),m[c]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return c.type="throw",c.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=e,c.arg=t,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),y(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;y(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},md7G:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("U8pU"),o=n("JX7q");function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},o0o1:function(e,t,n){e.exports=n("ls82")},onLe:function(e,t){!function(){e.exports=this.wp.notices}()},pPDe:function(e,t,n){"use strict";var r,o;function i(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,s;function u(){n=o?new WeakMap:c()}function l(){var n,r,o,i,c,u=arguments.length;for(i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];for(c=t.apply(null,i),(n=s(c)).isUniqueByDependants||(n.lastDependants&&!a(c,n.lastDependants,0)&&n.clear(),n.lastDependants=c),r=n.head;r;){if(a(r.args,i,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=i),s=o?function(e){var t,o,i,a,s,u=n,l=!0;for(t=0;t<e.length;t++){if(o=e[t],!(s=o)||"object"!=typeof s){l=!1;break}u.has(o)?u=u.get(o):(i=new WeakMap,u.set(o,i),u=i)}return u.has(r)||((a=c()).isUniqueByDependants=l,u.set(r,a)),u.get(r)}:function(){return n},l.getDependants=t,l.clear=u,u(),l}},qRz9:function(e,t){!function(){e.exports=this.wp.richText}()},rePB:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},rl8x:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},rmEH:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},"tI+e":function(e,t){!function(){e.exports=this.wp.components}()},vpQ4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("rePB");function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}},vuIU:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},wx14:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},ywyh:function(e,t){!function(){e.exports=this.wp.apiFetch}()}});